framework7
framework7 copied to clipboard
Pragma cannot be set when runtime is automatic (solution suggested)
- Framework7 version: 8.3.0
- React.js version: 18.2.0
- Platform and Target: web
- Next JS 13
There is a bug with the latest framework7 version when integrating with the latest version of nextjs.
I get the following error :
./node_modules/framework7/components/actions/actions-class.js
Error:
x pragma cannot be set when runtime is automatic
To Reproduce
Steps to reproduce the behavior:
- npx create-next-app@latest
- npm install framework7
- add import Framework7 from ‘framework7/lite-bundle’; in layout.js
Expected behavior
No error shown
Actual Behavior
The following error is shown:
./node_modules/framework7/components/actions/actions-class.js
Error:
x pragma cannot be set when runtime is automatic
Additional context
It can be solved by adding (it would force the runtime to be classic for these files)
/** @jsxRuntime classic */
Before each pragma:
/** @jsx $jsx */
Any luck with it?
Nothing new?