> For the complete documentation index, see [llms.txt](https://docs.b2b-sellers.com/b2b-platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.b2b-sellers.com/b2b-platform/3/developer-guides/typical-errors.md).

# 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&#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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
