Closed aisbergg closed 2 years ago
Added to package.json for the client 👍
In the current version it still won't build without modifications. I guess you have to update the lock file too. Same for the server component (#74).
Still broken
$ yarn workspace client run gatsby build --prefix-paths
warning package.json: "dependencies" has dependency "gatsby-plugin-eslint" with range "^4.0.1" that collides with a dependency in "devDependencies" of the same name with version "^3.0.0"
$ /tmp/losh-frontend-src/node_modules/.bin/gatsby build --prefix-paths
ERROR
There was a problem loading plugin "gatsby-plugin-ts-checker". Perhaps you need
to install its package?
Use --verbose to see actual error.
not finished open and validate gatsby-configs, load plugins - 0.045s
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed.
Exit code: 1
Command: /usr/local/bin/node
Arguments: /opt/yarn-v1.22.5/lib/cli.js run gatsby build --prefix-paths
Directory: /tmp/losh-frontend-src/packages/client
Output:
info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.
error Command failed with exit code 1.
Describe the bug The client cannot be build using only the production packages, because it misses the
gatsby-plugin-eslint
package. I helped myself by adding the package manually:yarn client add gatsby-plugin-eslint
To Reproduce
yarn client install --production
yarn client build
Additional context The error message: