react-native-withcss icon indicating copy to clipboard operation
react-native-withcss copied to clipboard

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

Open imyoka opened this issue 6 years ago • 2 comments

.babelrc中加入

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

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

imyoka avatar Nov 15 '18 14:11 imyoka

我尝试加了

{
    "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

imyoka avatar Nov 15 '18 15:11 imyoka

in dev mode, please run npm run cssWatch first

ykforerlang avatar Nov 16 '18 07:11 ykforerlang