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

umi build error #1623

Closed
junhey opened this issue Dec 13, 2018 · 1 comment
Closed

umi build error #1623

junhey opened this issue Dec 13, 2018 · 1 comment

Comments

@junhey
Copy link

junhey commented Dec 13, 2018

node版本:10.13.0
报错内容:

ERROR  Failed to compile with 1 errors10:47:40 AM

 error  in ./app/web/src/pages/.umi-production/router.js

Module parse failed: Unexpected token (19:0)
You may need an appropriate loader to handle this file type.
| export default function() {
|   return (
> <RendererWrapper0>
|           <Router history={window.g_history}>
|       { renderRoutes(routes, {}) }

 @ ./app/web/src/pages/.umi-production/umi.js 20:38-57
 @ multi ./node_modules/[email protected]@umi-build-dev/template/setPublicPath.js ./app/web/src/pages/.umi-production/umi.js

[CaseSensitivePathsPlugin] Total filesystem reads: 5813
✖  error                        Build failed
✖  error                        null
[CaseSensitivePathsPlugin] Reading directory /homnpm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `APP_ROOT=$PWD/app/web umi build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/admin/.npm/_logs/2018-12-13T02_47_41_094Z-debug.log
@sorrycc
Copy link
Member

sorrycc commented Dec 13, 2018

给可重现代码,RendererWrapper0 是哪里来的?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants