parcel-bundler/source-map

Error: Cannot find module './artifacts/index.win32-ia32-msvc.node'

Opened this issue · 1 comments

🐛 bug report

I am trying to run a simple typescript project using parcel on Windows. here is my package.json file.

{
  "name": "maps",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "start": "parcel src/index.html",
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "parcel": "^2.10.0"
  }
}

I've already installed VC_redist.x64.

But sill when I run npm start. I get the following error:

> maps@1.0.0 start
> parcel src/index.html

Error: Cannot find module './artifacts/index.win32-ia32-msvc.node'
Require stack:
- C:\Users\x\working\maps\node_modules\@parcel\source-map\parcel_sourcemap_node\index.js
- C:\Users\x\working\maps\node_modules\@parcel\source-map\dist\node.js
- C:\Users\x\working\maps\node_modules\@parcel\utils\lib\index.js
- C:\Users\x\working\maps\node_modules\@parcel\core\lib\public\Config.js
- C:\Users\x\working\maps\node_modules\@parcel\core\lib\utils.js
- C:\Users\x\working\maps\node_modules\@parcel\core\lib\public\Environment.js
- C:\Users\x\working\maps\node_modules\@parcel\core\lib\public\Asset.js
- C:\Users\x\working\maps\node_modules\@parcel\core\lib\Parcel.js
- C:\Users\x\working\maps\node_modules\@parcel\core\lib\index.js
- C:\Users\x\working\maps\node_modules\parcel\lib\cli.js
- C:\Users\x\working\maps\node_modules\parcel\lib\bin.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (C:\Users\x\working\maps\node_modules\@parcel\source-map\parcel_sourcemap_node\index.js:15:18)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\x\\working\\maps\\node_modules\\@parcel\\source-map\\parcel_sourcemap_node\\index.js',
    'C:\\Users\\x\\working\\maps\\node_modules\\@parcel\\source-map\\dist\\node.js',
    'C:\\Users\\x\\working\\maps\\node_modules\\@parcel\\utils\\lib\\index.js',
    'C:\\Users\\x\\working\\maps\\node_modules\\@parcel\\core\\lib\\public\\Config.js',
    'C:\\Users\\x\\working\\maps\\node_modules\\@parcel\\core\\lib\\utils.js',
    'C:\\Users\\x\\working\\maps\\node_modules\\@parcel\\core\\lib\\public\\Environment.js',
    'C:\\Users\\x\\working\\maps\\node_modules\\@parcel\\core\\lib\\public\\Asset.js',
    'C:\\Users\\x\\working\\maps\\node_modules\\@parcel\\core\\lib\\Parcel.js',
    'C:\\Users\\x\\working\\maps\\node_modules\\@parcel\\core\\lib\\index.js',
    'C:\\Users\\x\\working\\maps\\node_modules\\parcel\\lib\\cli.js',
    'C:\\Users\\x\\working\\maps\\node_modules\\parcel\\lib\\bin.js'
  ]
}

the default recommended version of node on its official website is 32-bit version (when we click the green download button on its homepage, so you just need to download a 64-bit version node (notice that "Other Downloads" under the button?)