spirit-island-builder / spirit-island-builder

Website for building Spirit Island components
https://spiritislandbuilder.com/
10 stars 11 forks source link

Unable to 'npm run dev' after #180 #208

Closed resonant-gamedesign closed 1 year ago

resonant-gamedesign commented 1 year ago

Do I need to re-run something after the new change?

I'm getting the following error from 'npm run dev':

failed to load config from C:\Users\Andrew\Documents\GitHub\spirit-island-builder\vite.config.js error when starting dev server: Error: The package "@esbuild/win32-x64" could not be found, and is needed by esbuild.

If you are installing esbuild with npm, make sure that you don't specify the "--no-optional" or "--omit=optional" flags. The "optionalDependencies" feature of "package.json" is used by esbuild to install the correct binary executable for your current platform.

tomprince commented 1 year ago

Whenever dependencies are updated, you'll need to run npm install after updating, to install the new dependencies.

resonant-gamedesign commented 1 year ago

Thanks. We also figured out that I needed to delete node_modules

tomprince commented 1 year ago

I'm assuming this is resolved now?

We also figured out that I needed to delete node_modules

I'm surprised by this.

neubee commented 1 year ago

Yep, all set here.

I'm not 100% sure, but my guess was that at the time that we first installed vite whatever post install stuff vite does for esbuild didn't work properly and in the end we were missing the package mentioned in @resonant-gamedesign's error.