wmde / LOSH-Frontend

1 stars 3 forks source link

Client cannot be build using the production packages #73

Closed aisbergg closed 2 years ago

aisbergg commented 3 years ago

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

  1. Install client build-packages: yarn client install --production
  2. Execute build: yarn client build

Additional context The error message:

 ERROR 

There was a problem loading plugin "gatsby-plugin-eslint". Perhaps you need to install its package?
Use --verbose to see actual error.

not finished open and validate gatsby-configs, load plugins - 0.033s

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.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
botoxparty commented 2 years ago

Added to package.json for the client 👍

aisbergg commented 2 years ago

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).

aisbergg commented 2 years ago

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.