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
Check if updating to the latest Preact version resolves the issue
I already have a website on React and would like to migrate to Preact. My website is bundling with Webpack and ts-loader. And that's a problem, because I couldn't find how to migrate from React to Preact if I don't use babel. For example, here are the steps for migrating using babel. But editting .babelrc will not affect in my case.
So, I decided to search the Internet and as I understand such configuration should have helped:
The classic JSX mode (="react") doesn't add imports for the jsx pragma function automatically. Those need to be imported by hand if the newer runtime mode isn't an option.
The new runtime mode which adds those imports automatically can be enabled by by setting jsx to either react-jsx or react-jsx-dev.
I already have a website on React and would like to migrate to Preact. My website is bundling with Webpack and ts-loader. And that's a problem, because I couldn't find how to migrate from React to Preact if I don't use babel. For example, here are the steps for migrating using babel. But editting
.babelrc
will not affect in my case.So, I decided to search the Internet and as I understand such configuration should have helped:
tsconfig.json
webpack.config.js
But it didn't work. The building process ends up with en error:
TS2304: Cannot find name 'h'.
Full version of tsconfig.json
The text was updated successfully, but these errors were encountered: