You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the latest version of Snowpack and all plugins.
What package manager are you using?
npm
What operating system are you using?
Windows
Describe the bug
I tried to install babel plugin to use jsx inside of .js files in my project.
since I'm extremely familiar and comfortable with the webpack and most of my files are in .js format.
but after installing babel and adding it to my config.mjs file. it gives me the error I've mentioned in the title.
it points to index.ts but I've never changed that file and in fact, whenever I remove babel plugin from my config.mjs file, the issue, goes away.
I wish there could be a built-in support to write jsx in js.
Quick checklist
What package manager are you using?
npm
What operating system are you using?
Windows
Describe the bug
I tried to install babel plugin to use jsx inside of
.js
files in my project.since I'm extremely familiar and comfortable with the webpack and most of my files are in
.js
format.but after installing babel and adding it to my
config.mjs
file. it gives me the error I've mentioned in the title.it points to
index.ts
but I've never changed that file and in fact, whenever I remove babel plugin from myconfig.mjs
file, the issue, goes away.I wish there could be a built-in support to write jsx in js.
Steps to reproduce
npx create-snowpack-app new-dir --template @snowpack/app-template-react-typescript
npm install --save-dev @snowpack/plugin-babel
npm install --save-dev @babel/preset-react
npm install --save-dev @babel/plugin-transform-react-jsx
snowpack.config.mjs
.babelrc
config:.bablerc
in the root directory:Link to minimal reproducible example (optional)
No response
The text was updated successfully, but these errors were encountered: