fix: resolve error for webpack 5#169
Conversation
the error is:Should not import the named export 'version' (imported as 'version') from default-exporting module (only default export is available soon)
|
Hello Antonio! We have been discussing your PR and while it looks okay, it also seems odd that you're having any issue at all. We're actually going to be moving to a bundler system soon, too. I thought that in advance of changing the codebase, it makes sense to first understand if perhaps we can understand why the current setup is a problem for you. It's possible that we could fix it together in your project. To paraphrase @marcoroth, ES modules are new-ish, but not so new that Webpack 5 shouldn't support them. Are you running this with Webpacker 6 beta or something? I can say, for what it's worth, that Webpacker 5.4.3 works perfectly. |
|
Yes I upgraded my rails app to use webpacker 6.0.0-rc.6 |
|
Thanks Antonio. I'm still fuzzy on why this is necessary, but I hope it helps. 😉 |
the error is:Should not import the named export 'version' (imported as 'version') from default-exporting module (only default export is available soon)
the error is:Should not import the named export 'version' (imported as 'version') from default-exporting module (only default export is available soon)
the error is:
Should not import the named export 'version' (imported as 'version') from
default-exporting module (only default export is available soon)