Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module '../lib/vscode/colorThemeData` #13

Closed
adhrinae opened this issue Apr 30, 2019 · 1 comment
Closed

Error: Cannot find module '../lib/vscode/colorThemeData` #13

adhrinae opened this issue Apr 30, 2019 · 1 comment

Comments

@adhrinae
Copy link

adhrinae commented Apr 30, 2019

Hello. I'm so excited about this plugin. Great work!
Sadly, as soon as I installed the plugin and turned on my development server, the following error was invoked.

error Plugin gatsby-transformer-remark returned an error


  Error: Cannot find module '../lib/vscode/colorThemeData'
  
  - loader.js:582 Function.Module._resolveFilename
    internal/modules/cjs/loader.js:582:15
  
  - loader.js:508 Function.Module._load
    internal/modules/cjs/loader.js:508:25
  
  - loader.js:637 Module.require
    internal/modules/cjs/loader.js:637:17
  
  - v8-compile-cache.js:159 require
    [rinae.dev]/[v8-compile-cache]/v8-compile-cache.js:159:20
  
  - index.js:9 Object.<anonymous>
    [rinae.dev]/[gatsby-remark-vscode]/src/index.js:9:28 // <- Look like this file caused the problem
  
  - v8-compile-cache.js:178 Module._compile
    [rinae.dev]/[v8-compile-cache]/v8-compile-cache.js:178:30
  
  - loader.js:712 Object.Module._extensions..js
    internal/modules/cjs/loader.js:712:10
  
  - loader.js:600 Module.load
    internal/modules/cjs/loader.js:600:32
  
  - loader.js:539 tryModuleLoad
    internal/modules/cjs/loader.js:539:12
  
  - loader.js:531 Function.Module._load
    internal/modules/cjs/loader.js:531:3
  
  - loader.js:637 Module.require
    internal/modules/cjs/loader.js:637:17
  
  - v8-compile-cache.js:159 require
    [rinae.dev]/[v8-compile-cache]/v8-compile-cache.js:159:20
  
  - index.js:2 Object.<anonymous>
    [rinae.dev]/[gatsby-remark-vscode]/index.js:2:18
  
  - v8-compile-cache.js:178 Module._compile
    [rinae.dev]/[v8-compile-cache]/v8-compile-cache.js:178:30
  
  - loader.js:712 Object.Module._extensions..js
    internal/modules/cjs/loader.js:712:10
  
  - loader.js:600 Module.load
    internal/modules/cjs/loader.js:600:32

What I found is that even though you wrote lib/vscode/colorThemeData.js in the source repository, those files were not included in the npm package.

@andrewbranch
Copy link
Owner

Doh, npmignore mistake. Fixed in 085f98c and v1.0.2 should be released automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants