FredKSchott / snowpack

ESM-powered frontend build tool. Instant, lightweight, unbundled development. ✌️
https://www.snowpack.dev
MIT License
19.48k stars 922 forks source link

[BUG] You may need an additional loader to handle the result of these loaders. #3452

Closed Labham-Jain closed 3 years ago

Labham-Jain commented 3 years ago

I'm getting this error when i use target: 'es2020' inside snowpack.config.js but es2018 works fine and bundles the package, however, i'm using import.meta in my jsx files and es2018 doesn't support that. Any help? (thanks in advanced.)

Webpack errors:
./_snowpack/pkg/react-query.js 1:12514
Module parse failed: Unexpected token (1:12514)
File was processed with these loaders:
 * ../node_modules/babel-loader/lib/index.js
 * ../node_modules/@snowpack/plugin-webpack/plugins/import-meta-fix.js
 * ../node_modules/@snowpack/plugin-webpack/plugins/proxy-import-resolve.js
You may need an additional loader to handle the result of these loaders.

Here are the complete logs [if needed] : https://gist.github.com/Labham-Jain/9a19544aca853f893a9dd46c7205a68a

Labham-Jain commented 3 years ago

Well after some investigation, I think my issue is different and this is another bug, I'm closing now, but feel free to share any help if you can do.