-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Build fails with "Attempted import error" after updating @neutrolinojs/lib
to 5.1.0
#110
Comments
Seems to work okay when I downgrade to |
Or maybe not... I don't get the |
I faced the same issue while following the Using any frontend library guide and decided to do some digging. I'm using neutralino version 5.1.0, and was able to get rid of the problem by explicitly importing the function as the following: Now, my knowledge is not particularly strong in the Javascript ecosystem mess, so I'm putting here my findings. Hopefully somebody could provide some expertise on what could be the actual issue. As a use-case, I'll be talking in the context of the
The
As oposed to
So, it seems like letting |
I'm experiencing a build failure after updating
@neutrolinojs/lib
to 5.1.0:Steps to repro:
neu create myapp --template codezri/neutralinojs-react
(as specified here: https://neutralino.js.org/docs/getting-started/using-frontend-libraries)myapp/react-src
@neutrolinjs/lib
by runningnpm install @neutralinojs/[email protected]
(as specified here: https://github.com/neutralinojs/neutralino.js/releases/tag/v5.1.0)npm run build
fromreact-src
orneu build
frommyapp
directoryI've also tried this in a pre-existing project with TypeScript and gotten the same result. Strangely, running
tsc
directly compiles without errors in that project, but running thebuild
script fails with the same "Attempted import error".Let me know if there's any other info I can provide, and thank you!
Neu cli v 11.0.1
macOS 14.0
Node 18.20.2
The text was updated successfully, but these errors were encountered: