Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parcel Build Module Not Found #8441

Closed
tylim88 opened this issue Sep 5, 2022 · 7 comments
Closed

Parcel Build Module Not Found #8441

tylim88 opened this issue Sep 5, 2022 · 7 comments

Comments

@tylim88
Copy link

tylim88 commented Sep 5, 2022

🐛 bug report

- C:\Users\limte\OneDrive\Desktop\FireSageJS\node_modules\@parcel\core\lib\public\Environment.js
- C:\Users\limte\OneDrive\Desktop\FireSageJS\node_modules\@parcel\core\lib\public\Asset.js
- C:\Users\limte\OneDrive\Desktop\FireSageJS\node_modules\@parcel\core\lib\Parcel.js
- C:\Users\limte\OneDrive\Desktop\FireSageJS\node_modules\@parcel\core\lib\index.js
- C:\Users\limte\OneDrive\Desktop\FireSageJS\node_modules\parcel\lib\cli.js
- C:\Users\limte\OneDrive\Desktop\FireSageJS\node_modules\parcel\lib\bin.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (C:\Users\limte\OneDrive\Desktop\FireSageJS\node_modules\v8-compile-cache\v8-compile-cache.js:159:20)
    at Object.<anonymous> (C:\Users\limte\OneDrive\Desktop\FireSageJS\node_modules\@parcel\source-map\parcel_sourcemap_node\index.js:15:18)
    at Module._compile (C:\Users\limte\OneDrive\Desktop\FireSageJS\node_modules\v8-compile-cache\v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\limte\\OneDrive\\Desktop\\FireSageJS\\node_modules\\@parcel\\source-map\\parcel_sourcemap_node\\index.js',
    'C:\\Users\\limte\\OneDrive\\Desktop\\FireSageJS\\node_modules\\@parcel\\source-map\\dist\\node.js',
    'C:\\Users\\limte\\OneDrive\\Desktop\\FireSageJS\\node_modules\\@parcel\\utils\\lib\\index.js',
    'C:\\Users\\limte\\OneDrive\\Desktop\\FireSageJS\\node_modules\\@parcel\\core\\lib\\public\\Config.js',
    'C:\\Users\\limte\\OneDrive\\Desktop\\FireSageJS\\node_modules\\@parcel\\core\\lib\\utils.js',
    'C:\\Users\\limte\\OneDrive\\Desktop\\FireSageJS\\node_modules\\@parcel\\core\\lib\\public\\Environment.js',
    'C:\\Users\\limte\\OneDrive\\Desktop\\FireSageJS\\node_modules\\@parcel\\core\\lib\\public\\Asset.js',
    'C:\\Users\\limte\\OneDrive\\Desktop\\FireSageJS\\node_modules\\@parcel\\core\\lib\\Parcel.js',
    'C:\\Users\\limte\\OneDrive\\Desktop\\FireSageJS\\node_modules\\@parcel\\core\\lib\\index.js',
    'C:\\Users\\limte\\OneDrive\\Desktop\\FireSageJS\\node_modules\\parcel\\lib\\cli.js',
    'C:\\Users\\limte\\OneDrive\\Desktop\\FireSageJS\\node_modules\\parcel\\lib\\bin.js'
  ]

🎛 Configuration (.babelrc, package.json, cli command)

command: parcel build
package.json config

{
	"targets": {
		"types": false,
		"main": {
			"optimize": true
		}
	},
}

🤔 Expected Behavior

should compile

😯 Current Behavior

error

🌍 Your Environment

Software Version(s)
Parcel 2.7.0
Node 16.16.0
npm/Yarn 8.0.0
Operating System window 11
VS Code 1.71.0
@tylim88
Copy link
Author

tylim88 commented Sep 5, 2022

I have tried this solution but is not working

image

@mischnic
Copy link
Member

mischnic commented Sep 5, 2022

That file is correctly published: https://unpkg.com/browse/@parcel/[email protected]/lib/public/Environment.js
So try deleting node_modules and rerunning npm

@tylim88
Copy link
Author

tylim88 commented Sep 5, 2022

still having the same issue after reinstallation

image
Environment.js exist

@mischnic
Copy link
Member

mischnic commented Sep 5, 2022

Please post the full error, there's more in that terminal window if you scroll up. It's something about the native sourcemap module

@tylim88
Copy link
Author

tylim88 commented Sep 5, 2022

image

npm run parcel is parcel build

@mischnic
Copy link
Member

Does this help? #7104 (comment)

@tylim88
Copy link
Author

tylim88 commented Dec 19, 2022

I don't need this anymore, but thx for the help

@tylim88 tylim88 closed this as completed Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants