-
Notifications
You must be signed in to change notification settings - Fork 9
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
SyntaxError: Named export 'useParams' not found #33
Comments
Also facing this same issue. |
Facing the issue as well during runtime.
|
+1 |
I think it has to do with this file. I tried doing the import the same way on one of my components and it works fine but if I add the |
I have a similar issue when adding
|
This problem hasn't still been fixed ... |
+1 |
Hey all! I just tried to reproduce with Next.js 14.0.4 & pages router and with & without turbo and couldn't reproduce this. Can someone please create us a minimal reproduction repository to further dig into this? Thanks! |
I was on a version below 14 for my case and updating to last version (14.0.4) fixed the issue ! |
This is not a valid import as import pkg from 'next/navigation.js';
const { useParams, usePathname, useSearchParams } = pkg; We landed some bundling improvements about handling Next.js APIs fully specified imports with extensio, such as If it still error, could someone provide a minimal reproduction that it failed on deployment? I'll help take a look. Thanks 🙏 |
I switched my app to the |
This wasn't an import I did, it's one from one of the internal packages of the |
@mayankmmmx, @SaranshChaudhary, @arenclissold, @azhong-git, @praveentcom, would you mind sharing the exact Next.js version you're using? |
@feugy - We are using 13.2.1 |
@SaranshChaudhary Please take a look at configuration. For NextJS version that older 13.3 you should use this config |
No luck yet. The project is on turbo-repo and have bumped it to Note that there are certain dependencies which are still running 13.1.x and ^13.3+, and I am not sure if these are creating a cascading effect. Nevertheless, it works when using |
Check out the document carefully. Create a separate component for versions of Next.js older than 13.3. |
Hi, am trying to setup the speed-insights module on the
pages
directory but I get this errorStack:
The text was updated successfully, but these errors were encountered: