Open jvenki opened 1 year ago
Please note that the URL http://localhost:3000/home-pages continues tot work fine even after enabling app
I'm seeing the exact same error. In my case the error goes away when I remove all the semantic-ui-react components from my pages in the app directory.
But I want to use this library even from the pages inside app directory.
Yes, me too. I am simply adding info to your error report in hopes it helps someone figure out what is causing this error.
Any updates?
It is not fixed in latest canary also
npx --no-install next info
Operating System:
Platform: darwin
Arch: x64
Version: Darwin Kernel Version 21.3.0: Wed Jan 5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_X86_64
Binaries:
Node: 18.12.1
npm: 8.19.2
Yarn: N/A
pnpm: N/A
Relevant packages:
next: 13.1.7-canary.8
eslint-config-next: 13.0.7
react: 18.2.0
react-dom: 18.2.0
Using SemanticUI here as well and also running into the same issue. Adding the 'use client'
pragma does seem to fix it but of course you lose the benefit of Server Components.
Same issue here using semantic-ui-react
same issue @nextui-org/react
Same Issue, we tried overriding the @babel/runtime to pin to version 7.22.5 (in semantic-ui-react) but this did not work
Same here, I wanted to port over an internal facebook create react app without changing the css library and was extremely interested in using next js
Seems like I can only get semantic ui to work when adding the 'use client' directive at the top of any component.
Trying to learn Next now, coming from React/Express in past projects. Not sure why having to specify use client
at the top is solving this for me.
same issue with rsuite
Any update? Facing the issue when using semanti-ui-react.
same issue with react-notion-x
same issue with react-notion-x
there is a reference scheme for react-notion -x: https://github.com/NotionX/react-notion-x/issues/511#issuecomment-1686505610
@pistachio214 Some people get an email every time you add a new comment. no need to remove them, you can edit them instead.
@rafalkrupinski Thank you for reminding me.
I'm still experiencing this issue (with react-notion-x
). Is there any update?
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true)
Link to the code that reproduces this issue
https://github.com/jvenki/nextjs-evaluation
To Reproduce
Just start the server
You will see the errors in the console. If you access http://localhost:3000/home-app, you will get the same error.
Describe the Bug
Same code works perfectly in pages directory but doesnt work if ported appropriately into the app directory
Pages Directory Commit - https://github.com/jvenki/nextjs-evaluation/commit/b31c6c7b6870e12e8ae2c83ca25c413f11a13ccd App Directory Commit - https://github.com/jvenki/nextjs-evaluation/commit/eba15dd6dc0812d951b451f521769805acb92b82
Looks like Transpilation configuration (either through Babel or SWC) is working correctly for code inside pages but not if i is inside app. I get the error
This is a 3rd Party Library and it is distributed with inheritsLoose runtime helper of Babel. This works properly within pages but not within app.
Note that I tried with Babel also by explicitly having babel.config.js file.
Expected Behavior
Should work without the above mentioned error
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response