# Typical errors

### 1. \[webpack-cli] ModuleNotFoundError: Module not found: Error: Can't resolve 'prosemirror-keymap' TIPTAP&#x20;

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:&#x20;

```
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 [/pages/l8D9KaRyct1HldD5ZSj2#b2b-platform-build-command-vue.js](https://docs.b2b-sellers.com/b2b-platform/3/developer-guides/pages/l8D9KaRyct1HldD5ZSj2#b2b-platform-build-command-vue.js "mention").

## 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
=====================


> b2b_platform@1.0.0 build
> mode=production webpack

sh: 1: webpack: Permission denied
```

1. Go to `src/Resources/app/b2b_platform` inside the plugin&#x20;
2. Delete `package-lock.json` and `node_modules`
3. Run `npm install`

Try rebuilding the platform again after performing these steps.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.b2b-sellers.com/b2b-platform/3/developer-guides/typical-errors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
