-
-
Notifications
You must be signed in to change notification settings - Fork 633
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
Inferno-* Packages break on V4 with Webpack 4 #1296
Comments
Adopting Update: If you use ESM with |
@jdalton so whats the solution to this error ? I am having exactly same problem. |
@Ownelek are you using a package that does use |
@jdalton In my project only Inferno uses
Also I am using Typescript in my project, so
|
All inferno packages use it I think. I tried patching it by removing the .mjs files from inside node_modules but that results in a lot of other errors Ultimately this needs to be fixed by inferno as for now this breaks |
I will change all file extensions from |
Makes me sad for some reason. Was hoping for some big new features in 5 😅 |
Fix for this has landed to dev 96bc3af |
Observed Behaviour
When using
inferno-mobx
withinferno
4 and webpack 4 the build fails with the following message:inferno-clone-vnode
,inferno-compat
,inferno-create-class
,inferno-mobx
&inferno-router
all seem to break with similar errors with eitherCan't import
orCan't reexport
.This only happens when one of these packages is imported inside the code. Check out the
master
branch for the working code without anything outside of inferno and thebroken
branch withinferno-mobx
in https://github.com/IgnusG/infernoV4-webpackV4-failInferno Metadata
Inferno 4.0.8
Webpack 4.1.0
The text was updated successfully, but these errors were encountered: