-
Notifications
You must be signed in to change notification settings - Fork 87
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
Having "next export" in npm script fails build, even if unused. #67
Comments
hey @racedale thanks so much for bringing this up!!! really value your insight/feedback :).
|
Noting that this just super confused me. I removed the |
Hi, At the bottom of the announcement blog post it says to deploy: I get this error:
I tried:
See the full deployment log and code: What GitHub repo should I start with? Thanks |
@gianpaj for the specific repo you linked, remove line 9 from https://github.com/gianpaj/confettilabs/blob/master/package.json#L9 for any repo you start with, don't include any |
just published to npm, pending upgrade here -> netlify/plugins#193 |
@lindsaylevine thanks a lot for the quick reply! removing that fixed the deployment! |
* fix: fixes a module interop issue * chore: bump version * chore: remove page router support * chore: update lock file * tests: currently skip this test as its disabled
Error message
** Static HTML export next.js projects do not require this plugin **
was caused by"export": "next export"
existing in my package.json file. I removed "npm run export" from my netlify.toml file when converting my site from SSG to adding some SSR pages, but had left that command in package.json (not documented in any posts that I would need to make sure to remove it).Was very very confusing to figure out. I think the easiest fix is updating the error message to be more specific to what is detected. But maybe there is another thing to detect off of? I'm new to Next so not sure.
File with detection logic
Also off topic, but for a new NextJS dev the docs around next-on-netlify vs this plugin were confusing. Is next-on-netlify legacy? Is this one the only way to also have custom functions?
The text was updated successfully, but these errors were encountered: