atlassian / pragmatic-drag-and-drop

Fast drag and drop for any experience on any tech stack
https://atlassian.design/components/pragmatic-drag-and-drop
Other
7.94k stars 165 forks source link

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

Open username14415 opened 3 weeks ago

username14415 commented 3 weeks ago

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 commented 3 weeks ago

Hi there,

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

username14415 commented 2 weeks ago

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

alexreardon commented 2 weeks ago

What styling solution are you using @username14415 ?

username14415 commented 1 week ago

just css