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

Unexpected character '`' #56

Open
NAMANANAS opened this issue May 19, 2021 · 0 comments
Open

Unexpected character '`' #56

NAMANANAS opened this issue May 19, 2021 · 0 comments

Comments

@NAMANANAS
Copy link

NAMANANAS commented May 19, 2021

安装完包
const JSONbig = require('json-bigint')
页面引入,在打包部署时报错

Using "webpack" config function defined in next.config.js.

Failed to build on /var/folders/6s/t07m9vtn2d5d9m607f3gvl5m0000gn/T/6e0b6a0c-013a-4688-967c-db92184c62e1
{ Error: commons.js from UglifyJs
Unexpected character '' [commons.js:22900,10] at /Users/web/node_modules/next/dist/server/build/index.js:182:21 at emitRecords.err (/Users/web/node_modules/webpack/lib/Compiler.js:269:13) at Compiler.emitRecords (/Users/web/node_modules/webpack/lib/Compiler.js:375:38) at emitAssets.err (/Users/web/node_modules/webpack/lib/Compiler.js:262:10) at applyPluginsAsyncSeries1.err (/Users/web/node_modules/webpack/lib/Compiler.js:368:12) at next (/Users/web/node_modules/tapable/lib/Tapable.js:218:11) at Compiler.compiler.plugin (/Users/web/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4) at Compiler.applyPluginsAsyncSeries1 (/Users/web/node_modules/tapable/lib/Tapable.js:222:13) at Compiler.afterEmit (/Users/web/node_modules/webpack/lib/Compiler.js:365:9) at require.forEach.err (/Users/web/node_modules/webpack/lib/Compiler.js:354:15) errors: [ 'commons.js from UglifyJs\nUnexpected character \'' [commons.js:22900,10]' ],

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