fkling / fkling/astexplorer

[PROJECT BUG] Module not found: Error: Can't resolve '@swc/wasm-web/wasm.js' in...

Open
#711 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
6.5k
Forks
772
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

When executing `npm run build-dev`, the following error is thrown, among multiple others of the same kind:

```shell
ERROR in ./src/parsers/js/swc.js
Module not found: Error: Can't resolve '@swc/wasm-web/wasm.js' in '/home/[REDACTED]/Projects/astexplorer/website/src/parsers/js'
```

Obviously, the deployed browser application crashes accordingly.

This happens with every version of node from 12 to 18 but probably also happens with 19 to 21.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to 'website'
2. Run `npm run build-dev`

**Expected behavior**

The webpack bundle is successfully built.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.