sveltekit-starter icon indicating copy to clipboard operation
sveltekit-starter copied to clipboard

Error on npm run setup

Open natis opened this issue 1 year ago • 5 comments

Getting this when I try to run npm run setup. Looks to be an outdated dependency.

node_modules/any-observable/register.js:29 throw new Error('Cannot find any-observable implementation nor' + ^

Error: Cannot find any-observable implementation nor global.Observable. You must install polyfill or call require("any-observable/register") with your preferred implementation, e.g. require("any-observable/register")('rxjs') on application load prior to any require("any-observable").

natis avatar Aug 17 '23 04:08 natis

I had the same issue as you, remove your node_modules & package-lock.json and re-run npm install.

sylvain75 avatar Aug 27 '23 11:08 sylvain75

I had the same issue as you, remove your node_modules & package-lock.json and re-run npm install.

Thank you. Maybe I don't understand the workings of Node to the extent needed, but doesn't that feel weird to have a clean project, run npm i, then having to delete what was just installed and re-do it?

natis avatar Aug 27 '23 15:08 natis

Me neither I do not understand the workings of Node but It is clearly not the first time I have to do that so it is not specific that that repo

sylvain75 avatar Aug 27 '23 22:08 sylvain75

I've got also this error. The solution of @sylvain75 solved it for me. Thanks!

maxkreutzfeldt avatar Oct 20 '23 08:10 maxkreutzfeldt

I think the maintainers of the project just need to update the package-lock.json file which is the culprit of the aforementioned problem. Thanks for the hint.

ThePeach avatar Oct 23 '23 07:10 ThePeach