sveltejs / realworld

SvelteKit implementation of the RealWorld app
https://realworld.svelte.dev
MIT License
2.24k stars 353 forks source link

Latest version of svelte-kit doesn't support cjs config #83

Closed irshadshalu closed 3 years ago

irshadshalu commented 3 years ago

Since the version specified in package.json for sveltekit is "next", It is fetching the latest version of sveltekit which is throwing a lot of errors like

svelte.config.cjs should be renamed to svelte.config.js and converted to an ES module.

Either package.json needs to be updated to use the exact version or the project needs to be updated to conform to the new standards.

sayasuhendra commented 3 years ago

change pnpm to npm

npm install
npm dev
npm build
npm start
irshadshalu commented 3 years ago

change pnpm to npm

Have you tried this? I tried this and it wasn't working for me.

sayasuhendra commented 3 years ago

sure. it's working for me.

make sure your node version is above 12.