Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pragma cannot be set when runtime is automatic (solution suggested) #4218

Open
fab-1 opened this issue Aug 25, 2023 · 2 comments
Open

Pragma cannot be set when runtime is automatic (solution suggested) #4218

fab-1 opened this issue Aug 25, 2023 · 2 comments

Comments

@fab-1
Copy link

fab-1 commented Aug 25, 2023

  • 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:

  1. npx create-next-app@latest
  2. npm install framework7
  3. 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 */

@silentlight
Copy link

Any luck with it?

@damienmauchamp
Copy link

Nothing new?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants