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

在JDReact中根据文档的配置,跑不起来 #1

Open
imyoka opened this issue Nov 15, 2018 · 2 comments
Open

在JDReact中根据文档的配置,跑不起来 #1

imyoka opened this issue Nov 15, 2018 · 2 comments

Comments

@imyoka
Copy link

imyoka commented Nov 15, 2018

.babelrc中加入

{
  "plugins": ["@areslabs/babel-plugin-import-css"],
  ...
}

报错,Unexpected keyword const.const declarations are not supported in strict mode

@imyoka
Copy link
Author

imyoka commented Nov 15, 2018

我尝试加了

{
    "presets": [
        "es2015",
        "react"
    ],
    "plugins": ["@areslabs/babel-plugin-import-css"]
}

没有上面的报错了,但是有新的报错

error: bundling failed: Error: Unable to resolve module `@areslabs/babel-plugin-import-css/rncsscache\jsbundles\JDReactNodeProxy\index.css.js` from `C:\Users\xxx\jdreact-jsbundle-jdreactnodeproxy\jsbundles\JDReactNodeProxy\secondKill.js`: Module `@areslabs/babel-plugin-import-css/rncsscache\jsbundles\JDReactNodeProxy\index.css.js` does not exist in the Haste module map

@ykforerlang
Copy link
Member

in dev mode, please run npm run cssWatch first

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