Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Started getting a build error on vercel with gatsby project builds fine locally. here is the log

12:10:48.019    failed Building production JavaScript and CSS bundles - 0.648s
12:10:48.023     ERROR #98123  WEBPACK
12:10:48.023    Generating JavaScript bundles failed
12:10:48.024    [BABEL] /vercel/workpath0/.cache/production-app.js: No "exports" main defined in /vercel/workpath0/node_modules/@babel/helper-compilation-targets/package.json
12:10:48.024    File: .cache/production-app.js
12:10:48.072    not finished run queries - 0.718s
12:10:48.174    npm ERR! code ELIFECYCLE
12:10:48.174    npm ERR! errno 1
12:10:48.178    npm ERR! pup@0.1.0 build: `gatsby build`
12:10:48.178    npm ERR! Exit status 1
12:10:48.178    npm ERR! 
12:10:48.178    npm ERR! Failed at the pup@0.1.0 build script.
12:10:48.178    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
12:10:48.192    npm ERR! A complete log of this run can be found in:
12:10:48.192    npm ERR!     /vercel/.npm/_logs/2021-01-06T12_10_48_178Z-debug.log
12:10:48.204    Error: Command "npm run build" exited with 1
12:10:52.216    Done with "package.json"

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
427 views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...