我在我的Gatsby项目中使用,在开发模式下一切都很好。
当我使用build命令时,我得到了这个日志错误:
info bootstrap finished - 4.630 s
⠀
failed Building production JavaScript and CSS bundles - 9.761s
ERROR #98123 WEBPACK
Generating JavaScript bundles failed
Parse error on line 1:
...n-x, calc(var(--aug-_TlJoinRX, 0px)/2 + var(--aug-_TrJoinL
这个错误发生在我创建gatsby-default-starter站点时。如何解决这个问题。有什么问题吗?
错误消息:
‼ pngquant pre-build test failed i compiling from source × Error: pngquant failed to build, make sure that libpng-dev is installed at D:\gatsby-project\my-gatsby-project\node_modules\bin-build\node_modules\execa\index.js:231:11 at runMicrota
我得到了这些构建错误,我不知道从哪里开始!
我不使用gatsby-plugin-typescript
谢谢!
11:52:19 AM: <w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Resolving 'gatsby-plugin-typescript/gatsby-node' in /opt/build/repo/node_modules/gatsby/dist/bootstrap for build dependencies doesn't lead to expecte
我遇到的根本问题是IE11在Object doesn't support property or method 'find'中失败了。看来我需要进口巴贝尔-聚脂,但我找不到合适的地方进行进口。
我尝试导入布局index.js,但是当我导入时,gatsby build在Module build failed: Error: only one instance of babel-polyfill is allowed中失败了。
我尝试过在gatsby-browser.js和gatsby-node.js中进行要求,但当我这样做时,IE中的错误仍然会发生,就好像babe
我试图运行gatsby develop来启动开发服务器,但是我得到了以下错误:
There was a problem loading the local develop command. Gatsby may not be installed in your site's "node_modules" directory. Perhaps you need to run "npm install"? You might need to delete your "package-lock.json" as well.
这就是我正在做的项目
我有一个gatsby项目,它工作良好,也有404页,但是我要么在gatsby build期间得到错误,要么在成功完成构建过程之后打开浏览器:
Building static HTML for pageserror: Error: ENOENT: no such file or directory
如果在gatsby build期间没有收到错误,那么在运行gatsby serve并打开浏览器时,必须打开浏览器:
Error: ENOENT: no such file or directory, stat '/project/public/404.html'
siteMetadata: {
title: `Gatsby Default Starter`,
description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`,
author: `@gatsbyjs`,
},
plugins: [
`gatsby-plugin-react-hel
我有盖茨比的应用程序。
当我在本地构建它时,它工作得很好,但是当我尝试将它部署到Netlify或Gitlab时,我会得到以下错误消息: Netlify错误消息:
8:44:20 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
8:44:20 PM: npm WARN config location in the cache, and they are managed by
8:44:20 PM: npm WARN config [`cacac