parcel-plugin-eslint
parcel-plugin-eslint copied to clipboard
Cannot find module 'parcel-bundler/src/assets/JSAsset'
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
Ok, so after debugging some debugging there were 2 issues here:
- I did not add
parcel-bundlerto my package.json - It does not work if you use
.jsxfiles
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.
To add onto what @jasperkuperus said, the same situation occurs with .vue files.