This is a SvelteKit app. NODE_VERSION is set to 16 in netlify.toml and in netlify dashboard.
When loading up the page, I get Unexpected token '.' likely in reference to else if (allow?.length && cwd) {
I believe this is the cause, because when I change my local Node version to 12, that’s the error. But the site builds successfully with Node 14 or 16 both locally and on Netlify. Still, the site doesn’t load on Netlify because of this JS error.
When deploying, I get:
11:26:24 PM: Finished saving go dependencies
11:26:25 PM: Site is live
11:26:27 PM: Build script success
11:26:54 PM: Finished processing build request in 1m10.097739842s
hey there @question_asker - could you provide a screenshot of where you are trying to set the js version exactly? We still think this is some kind of configuration issue.