Created
June 12, 2019 15:44
-
-
Save bzerangue/2846c8b8705962cb0ac733dccb86cc47 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error: Cannot find module './cors/addCorsOriginCommand' | |
Require stack: | |
- /Users/bmz/Dev/sanity/eleventy-sanity-blog-boilerplate/eleventyboilerplate/node_modules/@sanity/core/lib/commands/index.js | |
- /Users/bmz/Dev/sanity/eleventy-sanity-blog-boilerplate/eleventyboilerplate/node_modules/@sanity/core/lib/index.js | |
- /usr/local/lib/node_modules/@sanity/cli/bin/sanity-cli.js | |
- /usr/local/lib/node_modules/@sanity/cli/bin/sanity | |
at require (/usr/local/lib/node_modules/@sanity/cli/node_modules/v8-compile-cache/v8-compile-cache.js:161:20) | |
at Object.<anonymous> (~/Dev/sanity/eleventy-sanity-blog-boilerplate/eleventyboilerplate/node_modules/@sanity/core/lib/commands/index.js:64:52) | |
at Module._compile (/usr/local/lib/node_modules/@sanity/cli/node_modules/v8-compile-cache/v8-compile-cache.js:192:30) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sanitytutorialblog: Unhandled rejection: Error: Cannot find module './cors/addCorsOriginCommand' | |
sanitytutorialblog: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15) | |
sanitytutorialblog: at Function.Module._load (internal/modules/cjs/loader.js:508:25) | |
sanitytutorialblog: at Module.require (internal/modules/cjs/loader.js:637:17) | |
sanitytutorialblog: at require (/Users/bmz/Dev/sanity/eleventy-sanity-blog-boilerplate/studio/node_modules/v8-compile-cache/v8-compile-cache.js:161:20) | |
sanitytutorialblog: at Object.<anonymous> (/Users/bmz/Dev/sanity/eleventy-sanity-blog-boilerplate/studio/node_modules/@sanity/core/lib/commands/index.js:64:52) | |
sanitytutorialblog: at Module._compile (/Users/bmz/Dev/sanity/eleventy-sanity-blog-boilerplate/studio/node_modules/v8-compile-cache/v8-compile-cache.js:192:30) | |
sanitytutorialblog: at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10) | |
sanitytutorialblog: at Module.load (internal/modules/cjs/loader.js:600:32) | |
sanitytutorialblog: at tryModuleLoad (internal/modules/cjs/loader.js:539:12) | |
sanitytutorialblog: at Function.Module._load (internal/modules/cjs/loader.js:531:3) |
I just released v0.140.33 - I'm hoping that'll somehow fix the issue?
We were not able to reproduce this error, but heard others having the same issue - would be great if you could give us a heads up if this solves it
@rexxars - I am trying it now.
I have this problem too. I'm using node v11.11.0, which one are you on? I'm also using nvm.
Problem solved. Needed to update yarn using brew upgrade yarn
(was on 1.13.0
, upgraded to 1.17.3
). Seems the problem is that Node is a dependency of yarn and it was not current.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@kmelve - After completely removing the library cache on my mac and removing node, npm, yarn from my system. Then reinstalling node lts with n... I get the same error.
NOTE: I installed Node via n and installed node this way...
curl -L https://git.io/n-install | bash
and the installed the LTS version of node this wayn lts