Skip to content

fix: module entry is not specified#19

Open
Jungzl wants to merge 2 commits intobenfred:masterfrom
Jungzl:fix/module
Open

fix: module entry is not specified#19
Jungzl wants to merge 2 commits intobenfred:masterfrom
Jungzl:fix/module

Conversation

@Jungzl
Copy link

@Jungzl Jungzl commented Dec 3, 2024

No description provided.

@hustcc
Copy link

hustcc commented Dec 4, 2024

@huongtrung
Copy link

My project is having an error : Attempted import error: 'nelderMead' is not exported from 'fmin' (imported as 'nelderMead') in @AntV. Please merge this MR for fix bug above.

@hustcc
Copy link

hustcc commented Dec 10, 2024

My project is having an error : Attempted import error: 'nelderMead' is not exported from 'fmin' (imported as 'nelderMead') in @AntV. Please merge this MR for fix bug above.

lock fmin=0.0.2 can be solved.

typo we are @antvis.

@lloydjatkinson
Copy link
Contributor

I’m certain there has to be a better way than simply adding file extensions.

@Jungzl
Copy link
Author

Jungzl commented Dec 22, 2024

I’m certain there has to be a better way than simply adding file extensions.

Like remove "type": "module" or something else?

@lloydjatkinson
Copy link
Contributor

lloydjatkinson commented Dec 22, 2024

Well type: module should be the default in 2024 really. Is there a specific build tool this problem is appearing in? I guess that could be an interim fix, certainly less likely to cause weird problems like including file extensions can definitely cause in the future.

@wein2011
Copy link

I am experiencing the same error code without AntV after upgrading to 0.0.4. This might be related to webpack not dealing well with UMD modules. Ideally, fmin should be published as an ES module in addition to or instead of an UMD module. Type definition files would of course be another great addition.

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

Successfully merging this pull request may close these issues.

5 participants

Comments