parcel-plugin-html-externals icon indicating copy to clipboard operation
parcel-plugin-html-externals copied to clipboard

Cannot find module 'parcel-bundler/src/assets/HTMLAsset'

Open moos opened this issue 6 years ago • 6 comments

Error: Cannot find module 'parcel-bundler/src/assets/HTMLAsset'
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.Module._load (module.js:475:25)
    at Module.require (module.js:597:17)
 ...

Version 0.1.2.

$ npx parcel -V
1.12.4

moos avatar Jan 24 '20 00:01 moos

Current workaround: install parcel-bundler instead of parcel

stoically avatar Jan 27 '20 13:01 stoically

Seeing this issue too. Installing the extra dependency works however. Just a note. I am using parcel globally installed.

JoshuaHintze avatar Feb 26 '20 04:02 JoshuaHintze

@stoically When i use parcel-bundler globally installed, I made the same mistake. Is there a solution?

hxse avatar Sep 19 '20 11:09 hxse

Installing parcel-bundler as package dependency should work

stoically avatar Sep 19 '20 12:09 stoically

Installing parcel-bundler as package dependency should work

NODE_PATH C:\Users\username\AppData\Local\Yarn\Data\global\node_modules PATH C:\Users\username\AppData\Local\Yarn\Data\global Setting environment variables and restarting the terminal, solve the problem. Beacuse, the global path cannot be found by require().

hxse avatar Sep 19 '20 12:09 hxse

Just Encountered this issue, installing parcel-bundler worked for me.

trapcodeio avatar Nov 26 '20 11:11 trapcodeio