-
Notifications
You must be signed in to change notification settings - Fork 12
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
Module not found: Can't resolve './build/browser/index.mjs' #267
Comments
Hey hello, Rollup is our build system. Something tells me that your npm packages were not installed properly. Just to review and sync on the required steps:
Tell me if that helps, but it is the SDK and the demos are like separate projects that need to be installed independently. |
Hi ! I followed exactly the steps (and retried) and it tells me the same Module not found... Here is my consol (sorry for that) : usea@Air-de-usea identus-edge-agent-sdk-ts % npm i
running preinstall in /Users/usea/identus-edge-agent-sdk-ts changed 99 packages, and audited 1830 packages in 9s 324 packages are looking for funding 12 vulnerabilities (2 low, 5 moderate, 5 critical) To address issues that do not require attention, run: To address all issues possible (including breaking changes), run: Some issues need review, and may require choosing Run
running postinstall in /Users/usea/identus-edge-agent-sdk-ts removed 92 packages, changed 6 packages, and audited 1738 packages in 2s 324 packages are looking for funding 3 vulnerabilities (2 low, 1 moderate) To address issues that do not require attention, run: Some issues need review, and may require choosing Run
added 1526 packages, and audited 1738 packages in 51s 324 packages are looking for funding 3 vulnerabilities (2 low, 1 moderate) To address issues that do not require attention, run: Some issues need review, and may require choosing Run
Updating submodules warning: private item shadows public glob re-export warning: methods warning: struct warning: associated functions warning: warning: private item shadows public glob re-export warning: methods warning: struct warning: associated functions warning: warning: trait warning: trait warning: trait warning: trait warning: trait warning: trait warning: type warning: using warning: warning: unused variable: warning: unused variable: warning: unused variable: warning: use of deprecated method warning: use of deprecated method warning: use of deprecated associated function warning: use of deprecated method warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated method warning: use of deprecated method warning: use of deprecated method warning: use of deprecated associated function warning: use of deprecated method warning: use of deprecated associated function warning: use of deprecated method warning: use of deprecated associated function warning: use of deprecated method warning: warning: trait warning: trait warning: trait warning: trait warning: trait warning: trait warning: type warning: using warning: warning: unused variable: warning: unused variable: warning: unused variable: warning: use of deprecated method warning: use of deprecated method warning: use of deprecated associated function warning: use of deprecated method warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated method warning: use of deprecated method warning: use of deprecated method warning: use of deprecated associated function warning: use of deprecated method warning: use of deprecated associated function warning: use of deprecated method warning: use of deprecated associated function warning: use of deprecated method warning: warning: trait warning: trait warning: trait warning: trait warning: trait warning: trait warning: type warning: using warning: warning: unused variable: warning: variable does not need to be mutable warning: warning: trait warning: trait warning: trait warning: trait warning: trait warning: trait warning: type warning: using warning: warning: unused variable: warning: variable does not need to be mutable warning:
sh: rollup: command not found added 572 packages, and audited 2367 packages in 16s 316 packages are looking for funding 24 vulnerabilities (1 low, 10 moderate, 7 high, 6 critical) To address issues that do not require attention, run: To address all issues (including breaking changes), run: Run
▲ Next.js 14.0.4
Browserslist: caniuse-lite is outdated. Please run: warn - The warn - The
https://nextjs.org/docs/messages/module-not-found Import trace for requested module:
https://nextjs.org/docs/messages/module-not-found Import trace for requested module:
https://nextjs.org/docs/messages/module-not-found Import trace for requested module: |
If the SDK build fails "sh: rollup: command not found" then unfortunately u won't be able to run the demo, at least from source. I'll provide couple options anyway. Can you please confirm that:
A) Fixing the issue + trying to build everything back from source. From main branch I'll provide the inputs on my side Before i start, ./node_modules and ./externals/generated and ./externals/*.commit don't exist:
After a while i see that node_modules/rollup exists and node_modules/.bin/rollup exists too. I run
Lots of warnings on the rust building part but all fine. This should be the output:
U seem to not have rollup installed and that is likely the issue. OptionB: Then from the demo project: and u should be good to go Another alternative if u really want to build from source is From the root should do the same, building the files in ./build/** then u could continue with nextjs part |
I doubt its related but we are using nodejs LTS (long term support) version which is at least higher > than 18. |
Yes I was on node 18 at the beginning and upgrade to 20 thinking it was the problem, but it the same MAC OS I'm trying your solutions, I tell you if it works very soon |
@Wi77iame for some reason our rollup package json dependency is not there anymore. npm i rollup --save in the root |
Ok option B works fine I removed @Atala and reinstall it. Indeed, I don't know why but : the node_modules folder exists, I have like 10 "rollup-pluggin..." folders, I have .bin folder but no rollup inside. Thank you for all !!! PS : I just tried npm i rollup --save and it's ok, I have all the folder now in node_modules |
Thank you for reporting this, #269 Good luck! |
Merged the PR so closing the issue, anything else u need we're here |
OK ! I stay in the area ! |
Is this a regression?
Yes
Description
Hello everyone,
I would like to run the simple app to learn how it works. I followed all instructions but when I launch with npm run dev, here is the message...
I don't see any ./build folder in dependencies
Could you please help me ?
Thank you very much !
Please provide the exception or error you saw
Please provide the environment you discovered this bug in
Anything else?
Don't know if it could help but when I want to build the source SDK and run the command $npm run build, I have this message :
Updating submodules
sh: rollup: command not found
The text was updated successfully, but these errors were encountered: