Lautaro_dapin
Lautaro_dapin
Explore posts from servers
DTDrizzle Team
Created by Lautaro_dapin on 6/6/2023 in #help
Sveltekit Failed to resolve import "cloudflare:sockets"
I was trying to use drizzle orm in a sveltekit project with postgres run in a docker container, but i'm having the following error
[plugin:vite:import-analysis] Failed to resolve import "cloudflare:sockets" from "node_modules\.vite\deps\chunk-JJ5CRB2A.js?v=dcae3c33". Does the file exist?
F:/Python/jira-clon-2/node_modules/.vite/deps/chunk-JJ5CRB2A.js:2908:44
2906| this.once("connect", connectListener);
2907| const options = this.ssl ? { secureTransport: "starttls" } : {};
2908| const { connect } = await import("cloudflare:sockets");
| ^
2909| this._cfSocket = connect(`${host}:${port}`, options);
2910| this._cfWriter = this._cfSocket.writable.getWriter();
[plugin:vite:import-analysis] Failed to resolve import "cloudflare:sockets" from "node_modules\.vite\deps\chunk-JJ5CRB2A.js?v=dcae3c33". Does the file exist?
F:/Python/jira-clon-2/node_modules/.vite/deps/chunk-JJ5CRB2A.js:2908:44
2906| this.once("connect", connectListener);
2907| const options = this.ssl ? { secureTransport: "starttls" } : {};
2908| const { connect } = await import("cloudflare:sockets");
| ^
2909| this._cfSocket = connect(`${host}:${port}`, options);
2910| this._cfWriter = this._cfSocket.writable.getWriter();
7 replies