Node Package Rollup parsAst.js module not found #770
Replies: 6 comments
-
Thanks for flagging this. I am inclined to convert this issue to a discussion, as I can't reproduce this locally and a fresh CI build (where all configurations are built with a fresh install of everything) succeeded. I did find this issue in the "rollup" package, but that is unrelated to this project as such: rollup/rollup#5199. Before I make a final decision about this, can you provide some more information about your setup? OS and version, PlatformIO version, NodeJS version, etc. |
Beta Was this translation helpful? Give feedback.
-
Sure thing. I installed the PlatformIO extension and nodejs just earlier today. I did fail to install nodejs before trying to build the first time and went and did that, and had to add node to the system path variables. |
Beta Was this translation helpful? Give feedback.
-
That's very close to the versions I am using across the board, OS included. I'm going to sleep on this one and revisit this tomorrow. |
Beta Was this translation helpful? Give feedback.
-
@JasonDeGroff My apologies for not following up on this earlier. Are you still experiencing this problem? |
Beta Was this translation helpful? Give feedback.
-
After I made the necessary changes to get it to build everything was good. I'm not sure if this is still an issue though. I would have to start fresh and see if relocating the files is still required. I posted the issue if someone else needed to know how to resolve this. But as mentioned earlier, it might have been an issue with that particular package. |
Beta Was this translation helpful? Give feedback.
-
Alright, in that case I'll turn this into a Discussion so it can be found within the context of this project, but is not on the to-do list of things to fix. Thanks for your active involvement regarding this! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Below is the error I received that preventing build from fresh install of platformIO, nodejs, and a fresh opening of this project.
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '.\NightDriverStrip-main\site\node_modules\rollup\parseAst' imported from .\NightDriverStrip-main\site\node_modules\vite\dist\node\cli.js
I was able to get it to resolve by moving parseAst.js from the .\main\site\node_modules\rollup\dist location up one file to .\main\site\node_modules\rollup. This allowed the project to build using pio run -e demo. After the build I noticed that The rollup directory had way more stuff in it than before.
I am not sure this is fixable in this project, and may be a result of the node package, or my own ignorance, but I though I would report the error and solution I found regardless
Beta Was this translation helpful? Give feedback.
All reactions