-
Notifications
You must be signed in to change notification settings - Fork 24
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
Compilation errors when building with webpack 5 #24
Comments
interesting, this brings something to my memory microsoft/TypeScript#16577 I think your suggestion hits the nail |
this one could be related too webpack/webpack#12093 |
Have you tried to just run babel before publishing the lib with this babel plugin? I managed to have this working by just applying this rule, but I think that the code must be shipped in order to be used without having problems.
|
I actually would like to use the imports with I'm having a problem with eslint import plugin as it doesn't resolve the imports. I'm looking for a solution with maybe |
okay, thanks for the response @fernandopasik , let me know if you need a helping hand |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is still a problem. What's the proposed fix? |
Sorry for the delayed solution for this. I've added a task to have the .js extensions in the built files. This should work fine with the latest release v2.4.1 |
Hi @fernandopasik, thanks for your project, it's pretty useful. We are using your code in order to traverse React trees in runtime and do some stuff to adapt dynamically how a chat must be shown depending on a messaging provider (Facebook, Whatsapp, ...).
Expected behavior
It should work correctly with Webpack 5.9.0. Maybe transpiled lib should preserve the file extension in order to not break with webpack.
Current behavior
We are now trying to migrate our projects to Webpack 5 and we have experienced the following kind of errors:
Steps to reproduce
Device information
Possible solution
If not fully necessary, do not specify type module in package.json. Otherwise, publish
lib
with it's corresponding extensions.Related issues (solutions proposed didn't work for me): graphql/graphql-js#2721
In fact, changing manually the following code inside
node_modules
fixed the issue:to
The text was updated successfully, but these errors were encountered: