Closed stahlmanDesign closed 6 months ago
pragma cannot be set when runtime is automatic
I'm not familiar with NextJS, but I'm guessing this error message means the compiler/transpiler won't let you use the @jsx
directive, probably due to the current NextJS configuration. In that case, you'll have to either give up on using react-isometric-projection's JSX syntax (you can usual the standard Polygon({...})
syntax instead) or you'll have to change your build configuration to allow the use of the @jsx
directive.
Closing, as this issue does not seem to be a problem with react-isometric-projection, but rather with the NextJS config. If I'm wrong, feel free to reopen.
In trying to get your demo to work, in NextJS (I haven't tested Regular React) there is an error related to this part of the code:
If I remove the commented lines there is a different error: