You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// mod.tsimportmittfrom'npm:mitt'constemitter=mitt()// This expression is not callable. Type 'typeof import("file:///fakepath/deno/npm/registry.npmjs.org/mitt/3.0.1/index")' has no call signatures.emitter.on('dev',()=>console.log('dev'))emitter.emit('dev')
deno bench bench.ts it can not work
// bench.tsimportmittfrom'npm:mitt'Deno.bench({name: 'mitt',fn(){constemitter=mitt()// This expression is not callable. Type 'typeof import("file:///fakepath/deno/npm/registry.npmjs.org/mitt/3.0.1/index")' has no call signatures.emitter.on('dev',()=>console.log('dev'))emitter.emit('dev')}})
vscode has an error with both code.
deno run mod.ts
it can workdeno bench bench.ts
it can not workvscode: 1.96.2
The text was updated successfully, but these errors were encountered: