随风

Results 8 comments of 随风

你好,我在执行到第三步时,即使还没有修改`.roadhogrc`文件,在访问`/api/anypath`时,浏览器都报这个错误:`Uncaught SyntaxError: Unexpected token < index.js:1 `,后面修改`.roadhogrc`文件配置后依然如此,配置没有问题,`npm start`可以正常启动。 我试了三次都是同样的结果,不知哪里出了问题。 环境:`chrome` `dva 0.7.8` `node 7.2.1`

@sorrycc 最后FAQ一段里,`user-dashboard 升级到 dva@2 的 commit `这句的链接指向的是旧的版本,代码已经不对了,希望可以改一下,避免其他人再按照错误示例迁移。

same problem. I think share '@shared-context/shared-library' like the demo is impossible, webpack cannot resolve the library without any other config file but just a string. **maybe the demo means after...

第二篇什么时候出?期待

@doobee98 `T & { [P in U]: V }` means `T` or `{ [P in U]: V }` ```ts type test1 = { key: 'cat' value: 'green' } type test2...

我也碰到了,不过是新增babel-plugin-lodash插件时报的,后来发现是用nuxt hmr时直接修改编译配置会报这个错,停掉服务重新编译就没了

run dev时可以,build时又不行了。。

查了下原因,插件报错位置:https://github.com/ElementUI/babel-plugin-component/blob/master/src/core.js#L85 这里中间少了个空格,应该是`using both on-demand and importing all`,指全量引入`import Element from 'element-ui'`和单独引入`import { Message } from 'element-ui'`都有时,**需要把全量引入的代码放在前面** --- 我的情况是nuxt的plugins中引入了axios和element-ui: ```javascript plugins: [ '~/plugins/element-ui.js', '~/plugins/axios.js', ], ``` 在axios.js中单独引入了Message,在element-ui.js中是全量引入的。 把element-ui放在了前面,报错了,然后换了下位置: ```javascript plugins: [ '~/plugins/axios.js',...