json-bigint icon indicating copy to clipboard operation
json-bigint copied to clipboard

Unexpected character '`'

Open NAMANANAS opened this issue 3 years ago • 0 comments

安装完包 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]' ],

NAMANANAS avatar May 19 '21 05:05 NAMANANAS