I am editing my project and I get this error. I don’t know what it is or where it is. But it is not in my code. Some help would be appreciated.
what i do is delete node_modules, run pnpm install, and check what package that not installed in package.json.
Is the error even related with the “node_modules reinstalling” issue?
I am also having the same issue
Can you post the whole error here?
If you are not using
fromStore in your code, it probably has something to do with NPM packages you have installed.
Yeah, the error should have more info on the source of the error.
I have the same problem too
I figured it out. So, complicated. Reset your node modules, not by doing enable-pnpm, but deleting every dependency from package.json and re-adding them one by one. It worked for me.
I had this problem too. Here’s the exact error message that I got:
node v10.15.3, with pnpm Installing... Resolving: total 5, reused 0, downloaded 0 ... Resolving: total 72, reused 71, downloaded 0 Resolving: total 72, reused 71, downloaded 0 Resolving: total 72, reused 71, downloaded 0 ERROR Cannot read property 'fromStore' of undefined TypeError: Cannot read property 'fromStore' of undefined at pkgResponse.fetchingFiles.then (/opt/nvm/versions/node/v10.15.3/lib/node_modules/pnpm/lib/node_modules/@pnpm/resolve-dependencies/lib/resolveDependencies.js:323:45) at process._tickCallback (internal/process/next_tick.js:68:7)
I solved it by opening the terminal and removing the
node_modules folder and then
refreshing. To do that, type
rm -r node_modules in the terminal, and then press enter. And then type
refresh and hit enter.
(Edit: I added
-r (recursive) flag to
rm command as pointed out by khalby786, below. Weirdly Glitch doesn’t seem to need that flag to delete the node_modules folder. I’m guessing it has something to do with pnpm, or symlinks, or something like that.)
I’m still getting this issue - deleting node modules and re-adding, and deleting the folder and refreshing, didn’t work for me
rm -r node_modules? So that it deletes the whole folder and its contents.