-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: Loading unprepared module npm:<pkg@version> #18744
Comments
What are the contents of main.ts? |
Removed boilerplate code. import * as fs from 'node:fs';
import { App, YamlOutputType } from 'cdk8s';
import { generate } from './src/lib/generate.ts';
const rootApp = new App();
async function main() {
await generate(rootApp);
rootApp.synth();
}
await main(); generate.ts does some logic around filesystem using these packages. import * as fs from 'node:fs';
import { App, Chart } from 'cdk8s';
import { z } from 'zod';
// @deno-types="npm:@types/uuid@9"
import { v5 as uuidv5 } from 'uuid'; |
Thanks! |
Hmm I can no longer reproduce the issue. I thought I was able to reproduce the issue whenever I bump my dependencies. |
I got a similar error too.
|
Can you folks still repeat the problem on latest Deno version? |
I just got this error after upgrading a Lume website to the latest version. Full error:
The error disappeared when I tried again. Deno version:
So not quite the latest one. |
I encounter this after update After debug, actually, the problem is, error is throw at top level when import module In another word, inaccurate error report. And the problem of
After disable related test, it's fine again. So, in short, related to #20919 |
For mixed errors report, https://github.com/tc39/proposal-explicit-resource-management |
Yes and no. Below command success very very very often. $ deno test -A -c deno.json --parallel --no-check --coverage=xxx ./foo.test.ts Still sometime fail with error Guess there is race condition in deno code. |
After v1.32.4 we no longer have to pass
--reload
flag to update npm dependencies. It's a great improvement. However there is a little bug on the first run.For example, this script
deno run --allow-env --allow-write --allow-read main.ts
gives the following error on the first run.If I call the command again it works.
Deno version: 1.32.4
The text was updated successfully, but these errors were encountered: