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

node6.10.3报错 #29

Closed
artdong opened this issue Jun 3, 2019 · 0 comments
Closed

node6.10.3报错 #29

artdong opened this issue Jun 3, 2019 · 0 comments

Comments

@artdong
Copy link

artdong commented Jun 3, 2019

node6.10.3环境下,以下文件(config-overrides.js)报错。

const { override, fixBabelImports, addLessLoader } = require('customize-cra');

module.exports = override(
fixBabelImports('import', {
libraryName: 'antd',
libraryDirectory: 'es',
style: true,
}),
addLessLoader({
javascriptEnabled: true,
modifyVars: { '@primary-color': '#25b864' },
}),
);

error:

D:\github\create-react-app-antd\config-overrides.js:13
);
^
SyntaxError: Unexpected token )
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (D:\github\create-react-app-antd\node_modules\react-app-rewired\config-overrides.js:5:18)

@artdong artdong closed this as completed Jun 17, 2019
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

1 participant