美文网首页
webpack Parser.pp$4.raise 报错

webpack Parser.pp$4.raise 报错

作者: holidayPenguin | 来源:发表于2021-08-17 20:02 被阅读0次

错误

SyntaxError: Unexpected token (1:1)
    at Parser.pp$4.raise (D:\fe-easy-platform\h5\rongyi_merchant_h5\node_modules\webpack\node_modules\acorn\dist\acorn.js:2825:15)
    at Parser.pp.unexpected (D:\fe-easy-platform\h5\rongyi_merchant_h5\node_modules\webpack\node_modules\acorn\dist\acorn.js:689:10)
    at Parser.pp$3.parseParenAndDistinguishExpression (D:\fe-easy-platform\h5\rongyi_merchant_h5\node_modules\webpack\node_modules\acorn\dist\acorn.js:2335:51)
    at Parser.pp$3.parseExprAtom (D:\fe-easy-platform\h5\rongyi_merchant_h5\node_modules\webpack\node_modules\acorn\dist\acorn.js:2230:43)    
    at Parser.pp$3.parseExprSubscripts (D:\fe-easy-platform\h5\rongyi_merchant_h5\node_modules\webpack\node_modules\acorn\dist\acorn.js:2089:21)
    at Parser.pp$3.parseMaybeUnary (D:\fe-easy-platform\h5\rongyi_merchant_h5\node_modules\webpack\node_modules\acorn\dist\acorn.js:2066:19)  
    at Parser.pp$3.parseExprOps (D:\fe-easy-platform\h5\rongyi_merchant_h5\node_modules\webpack\node_modules\acorn\dist\acorn.js:2010:21)     
    at Parser.pp$3.parseMaybeConditional (D:\fe-easy-platform\h5\rongyi_merchant_h5\node_modules\webpack\node_modules\acorn\dist\acorn.js:1993:21)

问题原因

webpack环境编辑使用的DOMAIN='',应该使用DOMAIN='""'

相关文章

网友评论

      本文标题:webpack Parser.pp$4.raise 报错

      本文链接:https://www.haomeiwen.com/subject/qniibltx.html