Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
425 views
in Technique[技术] by (71.8m points)

vercel gatsby build issue

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! [email protected] 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 [email protected] 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"

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

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...