_genzzo
12/31/2023, 1:41 PMsirhype
12/31/2023, 10:45 PMsrc/App.tsx(1,53): error TS2307: Cannot find module 'react-router-dom' or its corresponding type declarations.
along with a billion other Cannot find module errors with my new Vite project. It's a vite + react + typescript project that's almost directly out of the box. When I've done this with other projects it worked, so I'm confused where I might be going wrong. Anyone seen this before?
Build command is yarn build
, dist
is the output directory. Versions are yarn@3.6.3, nodejs@18.17.1
tsconfig.json
{
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
}
.eslint.cjs
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:react-hooks/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
project: ["./tsconfig.json", "./tsconfig.node.json"],
tsconfigRootDir: __dirname,
},
plugins: ["react-refresh"],
rules: {
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
},
};
.jiangok
01/01/2024, 3:39 AMjjjrmy
01/02/2024, 1:52 AMrandomnick.
01/02/2024, 1:09 PMWilli
01/02/2024, 1:13 PMwww.studiokonter.de
, but it seems the SSL Part is in the way still.
I am getting a "SSL routines::sslv3 alert handshake failure" on doing the https curl acme-challenge.
Also looking at the audit log it seemingly shows an active custom hostname?!
{
"certificate_id": "–––",
"hostname": "www.studiokonter.de",
"id": "–––",
"status": "active",
"zone_id": "---"
}
I'm clueless how to proceed and help is much appreciated.mrnooli
01/02/2024, 4:10 PMlumi.na.
01/02/2024, 5:41 PM.jiangok
01/02/2024, 6:26 PMcole
01/02/2024, 10:12 PMfeva
01/03/2024, 4:32 AM22:34:13.230 Cloning repository...
22:34:14.381 From https://github.com/***/***
22:34:14.382 * branch 5401d3b1cf667acbb480a9f36502b2d27e0bf2a9 -> FETCH_HEAD
22:34:14.382
22:34:14.482 HEAD is now at 5401d3b Add blur handler to date input
22:34:14.483
22:34:14.595
22:34:14.631 Success: Finished cloning repository files
22:37:38.882 Failed: an internal error occurred. If this continues, contact support: https://cfl.re/3WgEyrH
Attached you'll see two examples. This behavior started just yesterday when we updated our SvelteKit app to 2.0 along with the CloudFlare adapter. We are using version 2 of the build system. And we are using node 20.10.0.
The IDs of failed deployments so far are:
- 9b677520-a3d2-44f4-aa5e-fcc3340c254b
-> fixed automagically here: 449a1e7c-bc6f-4f05-8bdf-161fdf883329
- 276247a1-4ad2-4e3e-94eb-a1218b3bd6d3
-> fixed automagically here: 90442989-4266-4416-95e1-62c7336953aa
- 16627ba0-095f-4e24-8eaf-dcfb16aab99a
-> fixed automagically here: 21f3ed7f-b5a4-43b1-9bd9-34fbb19207a3
Any idea of what we could try?dwayne
01/03/2024, 12:41 PMnicklas13
01/03/2024, 1:52 PMsubscriptions_
01/03/2024, 4:10 PMjakst
01/03/2024, 8:02 PM09:30:24.186 Found _routes.json in output directory. Uploading.
09:30:24.202 Validating asset output directory
09:30:25.129 Deploying your site to Cloudflare's global network...
09:30:28.310 Uploading... (38/45)
09:30:28.909 Uploading... (40/45)
09:30:28.925 Uploading... (43/45)
09:30:28.993 Uploading... (45/45)
09:30:28.994 ✨ Success! Uploaded 7 files (38 already uploaded) (1.01 sec)
09:30:28.994
09:30:29.231 ✨ Upload complete!
09:30:31.427 Success: Assets published!
09:30:32.382 Error: Failed to publish your Function. Got error: Uncaught Error: No connection string
at chunks/nitro/cloudflare-pages.mjs:7:32544
manicpixiedreamgoat
01/04/2024, 12:38 AMxazu001
01/04/2024, 6:20 AMcashewblue
01/04/2024, 9:45 AMexample.com/?modal
, however this doesn't change the resulting HTML.
What else can I try?phil
01/04/2024, 9:59 AMiamunr
01/04/2024, 9:12 PMenv/dev-1
that deployed to dev-1.test.com
with all the correct ENV vars for that environment.
I havent' seen a way to have deploys (GH Actions, wrangler) that have different env vars. Is there any way we can handle these?
We expect our Preview deploys to be able to point to several different environments.l133.
01/04/2024, 11:06 PMnathanwaters
01/05/2024, 12:13 AMgxcfromouterspace
01/05/2024, 2:01 PMMarcus
01/05/2024, 5:06 PMcloudflare/pages-action
? I'm trying to simulate the nice chatops-y build status message the cloudflare build process creates when building in Github instead for more control.spectralbyte
01/05/2024, 5:30 PMnotjoemartinez
01/05/2024, 8:20 PMfunctions
├── ping.js
└── index.js
When I deploy it I can send a get request to mydomain.pages.dev/ping
and it will respond with { "msg": "pong"}
I want to deploy a Nuxt font end to this mydomain.pages.dev
and have all the routes defined in my functions
folder like /ping
be considered API requests by the router.
But when I deploy a Nuxt project with the functions
folder included, Nuxt overrides all of the routes in folders
and just redirects the page to /
on Nuxt. The documentation on how to manage Nuxt routing with functions is pretty sparse https://developers.cloudflare.com/pages/framework-guides/deploy-a-nuxt-site/#use-bindings-in-your-nuxt-applicationDj_Laag [Michel]
01/06/2024, 4:12 PMmaybescripted
01/07/2024, 1:28 AMpriyanshu_gupta
01/08/2024, 2:59 AM