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

跑npm start出错 #10

Closed
hobbyLin opened this issue Jul 24, 2017 · 2 comments
Closed

跑npm start出错 #10

hobbyLin opened this issue Jul 24, 2017 · 2 comments

Comments

@hobbyLin
Copy link

Failed to compile.
Error in ./src/client.js
Module build failed: Error: Couldn't find preset "flow" relative to directory "/Users/doublewood/Desktop/myProject/dev-config/tool"
at Array.map (native)
dev-config/tool下面的 .babelrc
"presets": [
[
"env",
{
"modules": false
}
],
"stage-0",
"flow"
],

@hobbyLin
Copy link
Author

已经解决 你pkg里面没有加babel-preset-flow

npm install --save-dev babel-preset-flow

@wx-chevalier
Copy link
Owner

Thanks

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