Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is path to TangyPartialDate and TangyEthiopianDate correct? #341

Open
chrisekelley opened this issue May 23, 2022 · 2 comments
Open

Is path to TangyPartialDate and TangyEthiopianDate correct? #341

chrisekelley opened this issue May 23, 2022 · 2 comments

Comments

@chrisekelley
Copy link
Member

chrisekelley commented May 23, 2022

In tangy-form-item-callback-helpersm the path is incorrect - should be ./input/tangy-partial-date.js

import { TangyPartialDate } from '../tangy-partial-date.js'
import { TangyEthiopianDate } from '../tangy-ethio-date.js'

When I correct it however,

import { TangyPartialDate } from './input//tangy-partial-date.js'
import { TangyEthiopianDate } from './input/tangy-ethio-date.js'

I get this error:

Uncaught SyntaxError: The requested module './input/tangy-ethio-date.js' does not provide an export named 'TangyEthiopianDate' (at tangy-form-item-callback-helpers.js:2:10)

@chrisekelley
Copy link
Member Author

Update - won't build either:

ERROR in ./tangy-form-item-callback-helpers.js
Module not found: Error: Can't resolve '../tangy-partial-date.js' in '/home/runner/work/tangy-form/tangy-form'
 @ ./tangy-form-item-callback-helpers.js 1:0-[59](https://github.com/Tangerine-Community/tangy-form/runs/6547427067?check_suite_focus=true#step:5:60) 85:30-46
 @ ./tangy-form.js
 @ ./index.js

@chrisekelley
Copy link
Member Author

chrisekelley commented May 23, 2022

Fixed path and also added export keyword to class.

export class TangyEthiopianDate extends TangyInputBase {

chrisekelley added a commit that referenced this issue May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant