-
Notifications
You must be signed in to change notification settings - Fork 35
Working on netlify dev, not on actual deploy #1036
Comments
Thanks @PH4NTOMiki, going to move this to the correct repo as it seems related to our bundling logic |
Hi @PH4NTOMiki. Can you please confirm:
Thanks! |
Also, can you clarify what routes are giving you that runtime error? I've deployed your reproduction case to https://62176ba95237e4afd8500e35--eduardo-tests.netlify.app/ and I haven't been able to reproduce the error yet. |
@eduardoboucas you need to deploy |
Thanks for the additional info! We're looking into it and we'll keep this issue up-to-date with any progress. |
ah TIL this is due to Z-I-S-I. source issue here: sveltejs/kit#4079 (comment) i lack the knowledge to suggest a fix but happy to try out any changes as i was the source of the issue.. |
I reported a similar issue here: |
https://answers.netlify.com/t/netlify-serverless-typescript-functions-fail-with-dynamic-requires/52379/13 reverted to working version |
Esbuild source issue: evanw/esbuild#1921 |
tagging the latest issue i had with this coming up again today. sveltejs/kit#7839 (comment) i really dont know the cause but the result is we cannot use esbuild on netlify |
Describe the bug
SvelteKit app when deployed to Netlify returns
Dynamic require of "fs" is not supported
and sometimesCannot read property 'default' of undefined
for routes that havegray-matter
import in them, but the route only uses the text "part" of that library, notfs
part of it so there shouldn't be that error.The issue persists for node_bundler = esbuild and without it.
I think it has something to do with how you process node_modules.
logs:
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/PH4NTOMiki/swyxkit.git
git branch debuggingVersions
netlify dev
Configuration
netlify.toml
.System:
OS: Linux 5.13 Manjaro Linux
CPU: (8) x64 Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
Memory: 552.13 MB / 7.65 GB
Container: Yes
Shell: 5.1.12 - /bin/bash
Binaries:
Node: 17.2.0 - /usr/local/bin/node
npm: 8.5.1 - /usr/bin/npm
npmGlobalPackages:
netlify-cli: 9.8.0
The text was updated successfully, but these errors were encountered: