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

Module missing #108

Closed
geekplux opened this issue Aug 15, 2018 · 1 comment · Fixed by #109
Closed

Module missing #108

geekplux opened this issue Aug 15, 2018 · 1 comment · Fixed by #109

Comments

@geekplux
Copy link

Below error will report if babel-core not installed.

$ npm start

> @ start /Users/ppt
> mdx-deck deck.mdx

[mdx-deck] starting dev server
✖ 「wdm」:
ERROR in ./node_modules/_mdx-deck@1.6.0@mdx-deck/dist/entry.js
Module build failed (from ./node_modules/_babel-loader@7.1.5@babel-loader/lib/index.js):
Error: Cannot find module 'babel-core'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
    at Function.Module._load (internal/modules/cjs/loader.js:507:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/Users/geekplux/project/ppt/node_modules/_babel-loader@7.1.5@babel-loader/lib/index.js:3:13)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
 @ multi ./node_modules/_mdx-deck@1.6.0@mdx-deck/dist/entry.js ./node_modules/_mdx-deck@1.6.0@mdx-deck/lib/overlay.js main[0]

looks like should add babel-core into devDependencies. 🌞

@iamgrawal
Copy link
Contributor

Created a pull request for that, hope it will be merged soon 😃.
Meanwhile, you can explicitly add babel-core dependency into your project by typing: npm install --save-dev babel-core.

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

Successfully merging a pull request may close this issue.

2 participants