Skip to content
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

Odd rollup failure when running yarn dev #7

Open
amb26 opened this issue Apr 5, 2023 · 3 comments
Open

Odd rollup failure when running yarn dev #7

amb26 opened this issue Apr 5, 2023 · 3 comments

Comments

@amb26
Copy link
Member

amb26 commented Apr 5, 2023

I always get an odd rollup error on running yarn dev which looks like a fatal compilation error but doesn't seem to affect the startup -

Original error: Cannot use import statement outside a module
@imerss/inat-components-utils: https://rollupjs.org/command-line-interface/#bundleconfigascjs
@imerss/inat-components-utils: /home/ubuntu/inat-components-2/packages/inat-components-utils/rollup.config.js:1
@imerss/inat-components-utils: import typescript from "@rollup/plugin-typescript";
@imerss/inat-components-utils: ^^^^^^
@imerss/inat-components-utils: SyntaxError: Cannot use import statement outside a module 
@benkeen
Copy link
Member

benkeen commented Apr 8, 2023

Hmm, that's an odd one, I don't get that. I see I didn't include a nvm install line on the local dev instructions. Try running that before yarn dev to ensure you're on the right node version - that'd be my best guess.

@amb26
Copy link
Member Author

amb26 commented Apr 8, 2023

Tested on

node version: v18.15.0
npm version: v9.5.0
yarn version: 1.22.19

What is recommended?

@benkeen
Copy link
Member

benkeen commented Apr 9, 2023

When you switched to that node version, had you already ran yarn install? Wondering if maybe your node_modules was from an older node version or something. I tried a fresh clone but no problems, I'm afraid. Are you on Windows?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants