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
Invalid Hook call in dynamic routes #607
Comments
Definitely seems like a netlify plugin issue, as tested the same by deploying on vercel, and it works as expected |
@kush-daga hey! thanks for reporting this to us! can you please provide a simple and deployable repo that reproduces your issue? it can have just a single failing dynamic page. thank you! |
Heyy! Thanks for your reply, I did recreate this issue, This is the url -> https://romantic-gates-22561a.netlify.app/dynamic/1 |
Also I have the |
hey @kush-daga! switching to target: serverless from target: experimental-serverless-trace should fix your issue. let me know and we can close :)! |
and ftr, the |
Hey, umm I wanted to do this, however I am using sentry in my app, which requires this mode of target, as per this comment getsentry/sentry-javascript#3621 (comment) |
hmm. i pinged our esbuild expert internally to see what might be up. in the meantime, is it possible to omit one of the three offending features? (aka e-s-t, esbuild, or sentry?) or are all three required for your use case? note that we will "soon" be moving off of target: serverless to target: server. not in the very near future, but eventually. |
Hmmm, I wish i could omit one, but seems like all three are required for now, thanks for the reply though, will be waiting on an update :) |
Hi @kush-daga |
Ah, I realise the error message was suggesting it. We will fix that. To be clear: you shouldn't add |
any update on this? I am struggling to deploy this on netlify, it works fine on vercel but my entire stack is on netlify so I wanna build there |
@SidRathi47 my teammate matt provided updates earlier in the day. also, there are two solutions listed in the comments so far:
we know nothing about your specific use case as you've only just commented. do those updates and solutions not suffice for you? what further update are you looking for? |
Hey, sorry was a bit busy, will check and get back on this asap. |
Hey! just checked, removing |
yay, thanks for letting us know!! |
Describe the bug
In my next.js website, the dynamic routes, are throwing an error.
These work fine locally, and give no errors.
This can be related to using of
esbuild
as node_bundler.Expected behavior
The dynamic routes should work, as they do locally.
Versions
If you're using the CLI to build
If you're using file-based installation
The text was updated successfully, but these errors were encountered: