Typical errors
This page should help developers to easily solve and explain typical bugs we have noticed or had ourselves.
1. [webpack-cli] ModuleNotFoundError: Module not found: Error: Can't resolve 'prosemirror-keymap' TIPTAP
This error can occur when running "b2b:platform:build"
1. Go into path: custom/plugins/b2bsellerscore/src/Resources/app/b2b_platform 2. Install dependencies with this command:
npm i prosemirror-schema-list prosemirror-history prosemirror-dropcursor prosemirror-gapcursor prosemirror-keymap prosemirror-commands
Afterwards it should be possible to build our b2b platform.
2. Alternative:
// Quickfix, use specific npm version (dockware.io)
source ~/.bashrc
nvm install 16.15.1
More informations: https://github.com/ueberdosis/tiptap/issues/3492
Uncaught ReferenceError: B2bPlatform is not defined
If you encounter this error, try to build your B2BPlatform again with this command:
bin/console b2b:platform:build
For more information on this process, please see B2B-Platform Build-Command (Vue.Js).
npm error while building platform (php bin/console b2b:platform:build)
php bin/console b2b:platform:build
Dumping Bundle
=====================
[OK] Dumped plugin configuration.
Installing node modules
=====================
up to date, audited 1039 packages in 2s
147 packages are looking for funding
run `npm fund` for details
10 vulnerabilities (5 moderate, 4 high, 1 critical)
To address all issues, run:
npm audit fix
Run `npm audit` for details.
Building B2b Platform
=====================
> [email protected] build
> mode=production webpack
sh: 1: webpack: Permission denied
Go to
src/Resources/app/b2b_platform
inside the pluginDelete
package-lock.json
andnode_modules
Run
npm install
Try rebuilding the platform again after performing these steps.
Last updated
Was this helpful?