parcel-plugin-eslint icon indicating copy to clipboard operation
parcel-plugin-eslint copied to clipboard

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

Open jasperkuperus opened this issue 7 years ago • 2 comments

I guess I'm doing something wrong, I installed the plugin and got:

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

I've got an index.html file in ./src/ that refers to ./index.jsx using a script tag. Then I start parcel with parcel src/index.html. Without this plugin everything works like a charm.

parcel-bundler: 1.5.1 eslint: 4.16.0

jasperkuperus avatar Jan 28 '18 15:01 jasperkuperus

Ok, so after debugging some debugging there were 2 issues here:

  1. I did not add parcel-bundler to my package.json
  2. It does not work if you use .jsx files

So after adding parcel-bundler and changing the file extension to .js it works. So the main issue here would be that .jsx does not work yet.

jasperkuperus avatar Jan 28 '18 19:01 jasperkuperus

To add onto what @jasperkuperus said, the same situation occurs with .vue files.

NathanielInman avatar Oct 24 '19 15:10 NathanielInman