soundmanD
soundmanD
CDCloudflare Developers
Created by soundmanD on 11/19/2024 in #vitest-integration-beta
Hey folks, looking at getting into using
i'm using discord-api-types fine in the actual application itself, so it feels quite wrong that this is an issue just with testing.
7 replies
CDCloudflare Developers
Created by soundmanD on 11/19/2024 in #vitest-integration-beta
Hey folks, looking at getting into using
part 2...
VITEST-POOL-WORKERS:MODULE-FALLBACK 58168: import("C:/git/vitest-wrangler-discord-api-types/node_modules/discord-api-types/v10.js") relative to C:/git/vitest-wrangler-discord-api-types/node_modules/discord-api-types/v10.mjs: error: Error: Parse error @7:1:8
at Module.parse (file:///C:/git/vitest-wrangler-discord-api-types/node_modules/cjs-module-lexer/dist/lexer.mjs:2:381)
at getCjsNamedExports (file:///C:/git/vitest-wrangler-discord-api-types/node_modules/@cloudflare/vitest-pool-workers/dist/pool/index.mjs:703:49)
at getCjsNamedExports (file:///C:/git/vitest-wrangler-discord-api-types/node_modules/@cloudflare/vitest-pool-workers/dist/pool/index.mjs:719:35)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async load (file:///C:/git/vitest-wrangler-discord-api-types/node_modules/@cloudflare/vitest-pool-workers/dist/pool/index.mjs:940:24)
at async handleModuleFallbackRequest (file:///C:/git/vitest-wrangler-discord-api-types/node_modules/@cloudflare/vitest-pool-workers/dist/pool/index.mjs:977:12)
at async #handleLoopback (C:\git\vitest-wrangler-discord-api-types\node_modules\miniflare\dist\src\index.js:9619:20) {
idx: 7,
code: 'ERR_LEXER_ESM_SYNTAX'
}
workerd/server/server.c++:3059: error: Fallback service failed to fetch module; payload = ; spec = /?specifier=%2FC%3A%2Fgit%2Fvitest-wrangler-discord-api-types%2Fnode_modules%2Fdiscord-api-types%2Fv10.js&referrer=%2FC%3A%2Fgit%2Fvitest-wrangler-discord-api-types%2Fnode_modules%2Fdiscord-api-types%2Fv10.mjs&rawSpecifier=.%2Fv10.js
VITEST-POOL-WORKERS:MODULE-FALLBACK 58168: import("C:/git/vitest-wrangler-discord-api-types/node_modules/discord-api-types/v10.js") relative to C:/git/vitest-wrangler-discord-api-types/node_modules/discord-api-types/v10.mjs: error: Error: Parse error @7:1:8
at Module.parse (file:///C:/git/vitest-wrangler-discord-api-types/node_modules/cjs-module-lexer/dist/lexer.mjs:2:381)
at getCjsNamedExports (file:///C:/git/vitest-wrangler-discord-api-types/node_modules/@cloudflare/vitest-pool-workers/dist/pool/index.mjs:703:49)
at getCjsNamedExports (file:///C:/git/vitest-wrangler-discord-api-types/node_modules/@cloudflare/vitest-pool-workers/dist/pool/index.mjs:719:35)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async load (file:///C:/git/vitest-wrangler-discord-api-types/node_modules/@cloudflare/vitest-pool-workers/dist/pool/index.mjs:940:24)
at async handleModuleFallbackRequest (file:///C:/git/vitest-wrangler-discord-api-types/node_modules/@cloudflare/vitest-pool-workers/dist/pool/index.mjs:977:12)
at async #handleLoopback (C:\git\vitest-wrangler-discord-api-types\node_modules\miniflare\dist\src\index.js:9619:20) {
idx: 7,
code: 'ERR_LEXER_ESM_SYNTAX'
}
workerd/server/server.c++:3059: error: Fallback service failed to fetch module; payload = ; spec = /?specifier=%2FC%3A%2Fgit%2Fvitest-wrangler-discord-api-types%2Fnode_modules%2Fdiscord-api-types%2Fv10.js&referrer=%2FC%3A%2Fgit%2Fvitest-wrangler-discord-api-types%2Fnode_modules%2Fdiscord-api-types%2Fv10.mjs&rawSpecifier=.%2Fv10.js
7 replies
CDCloudflare Developers
Created by soundmanD on 11/19/2024 in #vitest-integration-beta
Hey folks, looking at getting into using
in the example repo, i've added in NODE_DEBUG=vitest-pool-workers:module-fallback environment variable and this is the output... part 1...
VITEST-POOL-WORKERS:MODULE-FALLBACK 58168: import("C:/git/vitest-wrangler-discord-api-types/node_modules/vite-node/dist/file:/C:/git/vitest-wrangler-discord-api-types/node_modules/discord-api-types/v10.mjs") relative to C:/git/vitest-wrangler-discord-api-types/node_modules/vite-node/dist/client.mjs: redirect: C:/git/vitest-wrangler-discord-api-types/node_modules/discord-api-types/v10.mjs
VITEST-POOL-WORKERS:MODULE-FALLBACK 58168: import("C:/git/vitest-wrangler-discord-api-types/node_modules/discord-api-types/v10.mjs") relative to C:/git/vitest-wrangler-discord-api-types/node_modules/vite-node/dist/client.mjs: esm: C:/git/vitest-wrangler-discord-api-types/node_modules/discord-api-types/v10.mjs
VITEST-POOL-WORKERS:MODULE-FALLBACK 58168: import("C:/git/vitest-wrangler-discord-api-types/node_modules/vite-node/dist/file:/C:/git/vitest-wrangler-discord-api-types/node_modules/discord-api-types/v10.mjs") relative to C:/git/vitest-wrangler-discord-api-types/node_modules/vite-node/dist/client.mjs: redirect: C:/git/vitest-wrangler-discord-api-types/node_modules/discord-api-types/v10.mjs
VITEST-POOL-WORKERS:MODULE-FALLBACK 58168: import("C:/git/vitest-wrangler-discord-api-types/node_modules/discord-api-types/v10.mjs") relative to C:/git/vitest-wrangler-discord-api-types/node_modules/vite-node/dist/client.mjs: esm: C:/git/vitest-wrangler-discord-api-types/node_modules/discord-api-types/v10.mjs
7 replies
CDCloudflare Developers
Created by soundmanD on 11/19/2024 in #vitest-integration-beta
Hey folks, looking at getting into using
7 replies
CDCloudflare Developers
Created by soundmanD on 11/19/2024 in #vitest-integration-beta
Hey folks, looking at getting into using
7 replies
CDCloudflare Developers
Created by 衡正 - Kousei (RedPanda483) on 10/30/2024 in #workers-help
Discord bot code refuses to function. Returns 'The application did not respond'.
unfortunately all i can say is that the readme for the repo is what needs to be followed.
25 replies
CDCloudflare Developers
Created by 衡正 - Kousei (RedPanda483) on 10/30/2024 in #workers-help
Discord bot code refuses to function. Returns 'The application did not respond'.
For testing purposes whilst you build your bot its fine. Just follow the readme at the linked demo app.
25 replies
CDCloudflare Developers
Created by 衡正 - Kousei (RedPanda483) on 10/30/2024 in #workers-help
Discord bot code refuses to function. Returns 'The application did not respond'.
Why not use wrangler? I'm on Windows as well and I can develop my bot locally.
25 replies
CDCloudflare Developers
Created by 衡正 - Kousei (RedPanda483) on 10/30/2024 in #workers-help
Discord bot code refuses to function. Returns 'The application did not respond'.
have you tried taking a look at discord's cloudflare sample app and using it as a basis? https://github.com/discord/cloudflare-sample-app
25 replies
CDCloudflare Developers
Created by 衡正 - Kousei (RedPanda483) on 10/30/2024 in #workers-help
Discord bot code refuses to function. Returns 'The application did not respond'.
security alert... you posted code with your secrets in them... time to cycle your bot token...
25 replies