Closed unrooot closed 2 months ago
In the meantime, I can reliably work around this by downgrading the version of the package I installed - I just go to the changelog of the package I'm using and pick a downgraded version number, change the version number in my package.json
and then rm -rf node_modules && npm i
and the error seems to resolve in most cases.
This should be patched now, will keep open for a while more.
Describe the bug It seems like after installing specific packages (or rather, randomly when you install packages) the loader will fail to require them and output the error "Attempted to call require with invalid argument(s)".
To Reproduce Not entirely certain of repro steps, but after some discussion in the Discord, the consensus seems to be that it sometimes happens when installing packages. It has happened with
spritesheet
,gameconfig
,playerbinder
, andobservablecollection
- although it does not seem to be specific packages, as installing them on other projects will usually work without any problems. Another person pointed out how bugged packages are streamed in with an extranode_modules
.Expected behavior This error should not occur after installing a new package.
Screenshots
Environment:
observablecollection
when the error started appearing.Additional context There aren't any errors until I try to require a module from the "bugged" package that gets synced in.