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

Having issue with mjs file #2

Open
shoaibsharif opened this issue May 30, 2020 · 6 comments
Open

Having issue with mjs file #2

shoaibsharif opened this issue May 30, 2020 · 6 comments

Comments

@shoaibsharif
Copy link

I was using this library with typescript and having issue with mjs file. Is there any workaround for that?
I get the following error:

Can't import the named export 'getEAW' from non EcmaScript module (only default export is available)

I have tried to import like this too:

import { TableEditor, options, Alignment, FormatType, 
HeaderAlignment } from "@susisu/mte-kernel/dist/mte-kernel.js";

but still no luck. How would I get rid of that? One thing was working when I delete the .mjs file from node_modules but then I get the same issue when deploying.

@ghost
Copy link

ghost commented Aug 13, 2020

Have you found a solution? I have the same problem。

@shoaibsharif
Copy link
Author

I forked it and change the package.json and gulp. Then, I am installing the package from github instead of installing it from npm registry.

@ghost
Copy link

ghost commented Aug 13, 2020

Thank you。

@ghost
Copy link

ghost commented Aug 21, 2020

Hi, thank you for your help. According to your instructions, the Vue framework I used can be run at development time. However, the same error was reported in the package. Can't I run in Vue?

@shoaibsharif
Copy link
Author

shoaibsharif commented Aug 21, 2020

Hi, thank you for your help. According to your instructions, the Vue framework I used can be run at development time. However, the same error was reported in the package. Can't I run in Vue?

can you update your package.json to

"@susisu/mte-kernel": "git+https://github.com/shoaibsharif/mte-kernel.git"

and check if that give you any error or not?

@susisu
Copy link
Owner

susisu commented Oct 24, 2020

Hi, sorry for late reply.

I have no idea what is reporting that error (Webpack, TypeScript, or something else, and its version).
Can you provide a reproduction repository?

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

2 participants