You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⛅️ wrangler 3.62.0
-------------------
✘ [ERROR] Could not resolve "path"
node_modules/.pnpm/telefunc@0.1.74_@babel+core@7.23.9_@babel+parser@7.24.5_@babel+types@7.24.5_react-streaming@0_3t7m6eqtjjvdb6ys45f7c5hbhi/node_modules/telefunc/dist/cjs/node/server/runTelefunc/loadTelefuncFilesFromConfig.js:8:23:
8 │ const path_1 = require("path");
╵ ~~~~~~
The package "path" 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.
✘ [ERROR] Could not resolve "path"
node_modules/.pnpm/telefunc@0.1.74_@babel+core@7.23.9_@babel+parser@7.24.5_@babel+types@7.24.5_react-streaming@0_3t7m6eqtjjvdb6ys45f7c5hbhi/node_modules/telefunc/dist/cjs/node/server/serverConfig.js:4:23:
4 │ const path_1 = require("path");
╵ ~~~~~~
The package "path" 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.
✘ [ERROR] Could not resolve "path"
node_modules/.pnpm/telefunc@0.1.74_@babel+core@7.23.9_@babel+parser@7.24.5_@babel+types@7.24.5_react-streaming@0_3t7m6eqtjjvdb6ys45f7c5hbhi/node_modules/telefunc/dist/cjs/utils/getOutDirs.js:9:39:
9 │ const path_1 = __importDefault(require("path"));
╵ ~~~~~~
The package "path" 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.
I use:
vike 0.4.177vite 5.2.11
Possible solution is to replace all node imports to prefixed. When I actually replaced in node_modules it works correctly
The text was updated successfully, but these errors were encountered:
sergeysova
added a commit
to ScreenStory/telefunc
that referenced
this issue
Jun 28, 2024
Using:
I use:
Possible solution is to replace all node imports to prefixed. When I actually replaced in
node_modules
it works correctlyThe text was updated successfully, but these errors were encountered: