Open birkskyum opened 4 months ago
I think I have a similar error- broke between 1.43.5 -> 1.43.6 and still failing in 1.44.0 importing from "npm:@azure/identity" will fail as cannot read properties of undefined (process.versions).
The debugger shows the process class is completely missing several properties: versions, env (your error), and several others.
Same problem. Have to revert to 1.43.5 for azure/identity to work.
@reeceorbuck @tesharp could you please share some reproduction code that causes the failure you're describing?
import { ClientSecretCredential } from "npm:@azure/identity"; const test = new ClientSecretCredential("a","b","c",);
A script with these two lines will throw.
@reeceorbuck @tesharp could you please share some reproduction code that causes the failure you're describing?
Just responded with short piece of code that shows my issue. Sorry I'm totally unfamiliar with GitHub conventions
Thanks, I can now reproduce the problem.
The error now is (deno 1.45.5+6522478):
ERROR process is not defined
instead of the
ERROR Cannot read properties of undefined (reading 'env')
Related to
I'll focus on triaging this for Deno 2, which prompts this install error instead:
deno task dev
show this on localhost:
server terminal show
Task dev vinxi dev
vinxi v0.3.14
vinxi starting dev server
[sentry-vite-plugin] Warning: No auth token provided. Will not create release. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/
[sentry-vite-plugin] Warning: No auth token provided. Will not upload source maps. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/
♻️ Generating routes...
✅ Processed routes in 93ms
[sentry-vite-plugin] Info: Sending telemetry data on issues and performance to Sentry. To disable telemetry, set `options.telemetry` to `false`.
➜ Local: http://localhost:3000/
➜ Network: use --host to expose
ServerFn Request: /Users/admin/repos/deno-kitchensink/tanstack.com/app/server/sponsors.ts - $$function0
Missing github credentials, returning mock data.
Missing airtable credentials, returning mock data.
Missing airtable credentials, returning mock data.
Missing airtable credentials, returning mock data.
Missing github credentials, returning mock data.
ServerFn Response: 200
- Payload: []
This output is alright, but had it been run with another runtime, the output would have continued with this and actually loaded the website:
1:41:24 AM [vite] ✨ new dependencies optimized: react-icons/md, tailwind-merge, @orama/react-components, react-icons/fa, @tanstack/start/client-runtime, react-icons/im, airtable, axios, @octokit/rest, @octokit/graphql
1:41:24 AM [vite] ✨ optimized dependencies changed. reloading
ServerFn Request: /Users/admin/repos/deno-kitchensink/tanstack.com/app/server/sponsors.ts - $$function0
ServerFn Response: 200
- Payload: []
1:41:25 AM [vite] ✨ new dependencies optimized: @visx/hierarchy, @visx/responsive
1:41:25 AM [vite] ✨ optimized dependencies changed. reloading
ServerFn Request: /Users/admin/repos/deno-kitchensink/tanstack.com/app/server/sponsors.ts - $$function0
ServerFn Response: 200
- Payload: []
Version: Deno 1.44.0
Repro:
Clone https://github.com/tanstack/tanstack.com pnpm i (using pnpm v 8.10.2) DENO_FUTURE=1 deno task dev
Error:
Seems like it's breaking at:
authToken: process.env.SENTRY_AUTH_TOKEN,
But it works fine with
pnpm run dev