Skip to content

Common Issues

kengo edited this page Mar 3, 2023 · 2 revisions

Module not found...can't resolve:

When you try to build assets via mage go:compileSharedData and you receive

 ERROR in ./assets/stylesheets/sol.scss
    Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
    ModuleNotFoundError: Module not found: Error: Can't resolve 'sol/dist/sol.css' in '/Users/kiiyeki/workspace/moma.org.kubed/repos/moma-go/assets/stylesheets'

Then you will need to link moma-go and sol. See README.md.

/bin/sh: webpack: command not found

When trying to generate a staging build via yarn build

# on `staging`
$ yarn build
$ webpack -p --config webpack.config.js --mode production
/bin/sh: webpack: command not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Try running yarn install and then yarn build again.

Clone this wiki locally