framework7 icon indicating copy to clipboard operation
framework7 copied to clipboard

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

Open fab-1 opened this issue 1 year ago • 2 comments

  • 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 */

fab-1 avatar Aug 25 '23 20:08 fab-1

Any luck with it?

silentlight avatar Dec 05 '23 13:12 silentlight

Nothing new?

damienmauchamp avatar Apr 26 '24 01:04 damienmauchamp