This repository has been archived by the owner on Sep 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 339
Module parse failed: Unexpected token (225:12) #41
Comments
+1 |
I have the same problem |
What Node version are you using? Try using |
Thanks for answering but i test this version of node too but nothing changed :( |
I am Chinese, my English is not good, please translate the following Chinese 我出现这个问题的原因是因为在vue中使用webpack进行初始化项目,代码中 使用require('web3.js'); 就会报错。 我的解决方法是:在build/webpack.base.conf.js文件中,配置:resolve('你的第三方库路径')
例如我web3.js出现了问题,我的修改的配置是:
然后去修改.babelrc文件:
我问题就这样解决了 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
npm run start
./node_modules/web3-eth-accounts/lib/index.js
Module parse failed: Unexpected token (225:12)
You may need an appropriate loader to handle this file type.
| }
| return signed({
| ...tx,
| chainId: args[0],
| nonce: args[1],
The text was updated successfully, but these errors were encountered: