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 with nextjs #67

Open
username14415 opened this issue May 31, 2024 · 4 comments
Open

pragma cannot be set when runtime is automatic with nextjs #67

username14415 opened this issue May 31, 2024 · 4 comments

Comments

@username14415
Copy link

username14415 commented May 31, 2024

Based on the example: https://atlassian.design/components/pragmatic-drag-and-drop/examples#tree
Using nextjs with React 18.2.0 i get pragma cannot be set when runtime is automatic with nextjs errors

I've found a "solution" by adding /** @jsxRuntime classic */ to every file (include node_modules) but i don't think it's a good idea for production projects
https://community.developer.atlassian.com/t/unable-to-consume-atlaskit-in-react-18/58519
https://www.reddit.com/r/reactjs/comments/12lm0gh/comment/kobevic/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

Any idea how to fix it?

@alexreardon
Copy link
Collaborator

Hi there,

Which package is giving you that issue? Our react-drop-indicator package?

@username14415
Copy link
Author

yes, plus other atlaskit components like: button, dropdown-menu

@alexreardon
Copy link
Collaborator

What styling solution are you using @username14415 ?

@username14415
Copy link
Author

just css

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

2 participants