Franz3
Franz3
Explore posts from servers
HHono
Created by Franz3 on 5/1/2024 in #help
Failed to load .env file ".env": Error: ENOENT: no such file or directory
amazing, thanks a lot for the help. I will also keep an eye open
101 replies
HHono
Created by Franz3 on 5/1/2024 in #help
Failed to load .env file ".env": Error: ENOENT: no such file or directory
or you use import them using a script tag then they should work on cf workers
do you mean that I can also use nodejs packages if I import themwith a script tag? I dont know how I would do that in workers though, as that sounds like html, which would be cf pages if I understand this correctly
101 replies
HHono
Created by Franz3 on 5/1/2024 in #help
Failed to load .env file ".env": Error: ENOENT: no such file or directory
they would have to tell you that they are browser compatible for me to know, or is there another way to tell besides trying it out?
101 replies
HHono
Created by Franz3 on 5/1/2024 in #help
Failed to load .env file ".env": Error: ENOENT: no such file or directory
Hey, this is a package to parse an rss feed, but I want to create an rss feed and serve it with my worker. Is it correct that I only have to look out for it being compatible with the chrome v8 engine? This linked rss parser for example, also lists nodejs, so I am confused about how I can tell if a package is compatible or not. Thanks a lot for the help and sorry for the beginner questions
101 replies
HHono
Created by Franz3 on 5/1/2024 in #help
Failed to load .env file ".env": Error: ENOENT: no such file or directory
Alright, I will give it a shot, thanks a lot
101 replies
HHono
Created by Franz3 on 5/1/2024 in #help
Failed to load .env file ".env": Error: ENOENT: no such file or directory
does that mean the solution would be to find another module with which I can create an atom feed, that doesn't use nodejs server modules? How can I tell if a module is doing that?
101 replies
HHono
Created by Franz3 on 5/1/2024 in #help
Failed to load .env file ".env": Error: ENOENT: no such file or directory
it seems something uses string_decoder which is part of that nodejs server
101 replies
HHono
Created by Franz3 on 5/1/2024 in #help
Failed to load .env file ".env": Error: ENOENT: no such file or directory
it fails to build
101 replies
HHono
Created by Franz3 on 5/1/2024 in #help
Failed to load .env file ".env": Error: ENOENT: no such file or directory
npx wrangler dev src/index.ts
⛅️ wrangler 3.53.0
-------------------
X [ERROR] Could not resolve "string_decoder"

node_modules/sax/lib/sax.js:234:25:
234 │ var SD = require('string_decoder').StringDecoder
╵ ~~~~~~~~~~~~~~~~

The package "string_decoder" wasn't found on the file system but is built into node.
Add "node_compat = true" to your wrangler.toml file and make sure to prefix the module name with "node:" to enable Node.js compatibility.


╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ [b] open a browser, [d] open Devtools, [l] turn off local mode, [c] clear console, [x] to exit │╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
X [ERROR] Failed to build
npx wrangler dev src/index.ts
⛅️ wrangler 3.53.0
-------------------
X [ERROR] Could not resolve "string_decoder"

node_modules/sax/lib/sax.js:234:25:
234 │ var SD = require('string_decoder').StringDecoder
╵ ~~~~~~~~~~~~~~~~

The package "string_decoder" wasn't found on the file system but is built into node.
Add "node_compat = true" to your wrangler.toml file and make sure to prefix the module name with "node:" to enable Node.js compatibility.


╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ [b] open a browser, [d] open Devtools, [l] turn off local mode, [c] clear console, [x] to exit │╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
X [ERROR] Failed to build
101 replies
HHono
Created by Franz3 on 5/1/2024 in #help
Failed to load .env file ".env": Error: ENOENT: no such file or directory
no
101 replies
HHono
Created by Franz3 on 5/1/2024 in #help
Failed to load .env file ".env": Error: ENOENT: no such file or directory
btw, after restarting the ide, the import error went awai, so thats fine
101 replies
HHono
Created by Franz3 on 5/1/2024 in #help
Failed to load .env file ".env": Error: ENOENT: no such file or directory
well, then these are the logs I get from that
101 replies
HHono
Created by Franz3 on 5/1/2024 in #help
Failed to load .env file ".env": Error: ENOENT: no such file or directory
else, I dont know how to stop wrangler
101 replies
HHono
Created by Franz3 on 5/1/2024 in #help
Failed to load .env file ".env": Error: ENOENT: no such file or directory
cause that is what I did
101 replies
HHono
Created by Franz3 on 5/1/2024 in #help
Failed to load .env file ".env": Error: ENOENT: no such file or directory
how do I stop it? isnt that done by using x to close the local dev environment and start it again with npx wrangler dev src/index.ts?
101 replies
HHono
Created by Franz3 on 5/1/2024 in #help
Failed to load .env file ".env": Error: ENOENT: no such file or directory
how do I do that?
101 replies
HHono
Created by Franz3 on 5/1/2024 in #help
Failed to load .env file ".env": Error: ENOENT: no such file or directory
101 replies
HHono
Created by Franz3 on 5/1/2024 in #help
Failed to load .env file ".env": Error: ENOENT: no such file or directory
X [ERROR] Could not resolve "string_decoder"

node_modules/sax/lib/sax.js:234:25:
234 │ var SD = require('string_decoder').StringDecoder
╵ ~~~~~~~~~~~~~~~~

The package "string_decoder" wasn't found on the file system but is built into node.
Add "node_compat = true" to your wrangler.toml file and make sure to prefix the module name with "node:" to enable Node.js compatibility.
X [ERROR] Could not resolve "string_decoder"

node_modules/sax/lib/sax.js:234:25:
234 │ var SD = require('string_decoder').StringDecoder
╵ ~~~~~~~~~~~~~~~~

The package "string_decoder" wasn't found on the file system but is built into node.
Add "node_compat = true" to your wrangler.toml file and make sure to prefix the module name with "node:" to enable Node.js compatibility.
101 replies
HHono
Created by Franz3 on 5/1/2024 in #help
Failed to load .env file ".env": Error: ENOENT: no such file or directory
ok, so should I try restarting the local dev instance with the rssFeed code included again?
101 replies
HHono
Created by Franz3 on 5/1/2024 in #help
Failed to load .env file ".env": Error: ENOENT: no such file or directory
Cannot find module 'feed' or its corresponding type declarations
101 replies