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
# npm init @observablehq
# cd hello-framework
# deno task dev
Task dev observable preview
error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'find')
at file:///Users/ry/src/hello-framework/node_modules/.deno/@observablehq+framework@1.2.0/node_modules/@observablehq/framework/dist/bin/observable.js:36:20
The text was updated successfully, but these errors were encountered:
…util.parseArgs` (#23192)
Fixes#23179.
Fixes#22454.
Enables passing `{tokens: true}` to `parseArgs` and setting default
values for options.
With this PR, the observable framework works with deno out of the box
(no unstable flags needed).
The existing code was basically copied straight from node, so this PR
mostly just updates that (out of date) vendored code. Also fixes some
issues with error exports (before this PR, in certain error cases we
were attempting to construct error classes that weren't actually in
scope).
The last change (in the second commit) adds a small hack so that we
actually exercise the `test-parse-args.js` node_compat test, previously
it was reported as passing though it should have failed. That test now
passes.
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
…util.parseArgs` (#23192)
Fixes#23179.
Fixes#22454.
Enables passing `{tokens: true}` to `parseArgs` and setting default
values for options.
With this PR, the observable framework works with deno out of the box
(no unstable flags needed).
The existing code was basically copied straight from node, so this PR
mostly just updates that (out of date) vendored code. Also fixes some
issues with error exports (before this PR, in certain error cases we
were attempting to construct error classes that weren't actually in
scope).
The last change (in the second commit) adds a small hack so that we
actually exercise the `test-parse-args.js` node_compat test, previously
it was reported as passing though it should have failed. That test now
passes.
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Version: Deno 1.41.1
https://nodejs.org/api/util.html#parseargs-tokens
Specifically the error is popping up in Observable Framework here https://github.com/observablehq/framework/blob/f85e0d81abcdfd9d1e193d2e18b4c67eb6ae74a4/src/bin/observable.ts#L25-L59
To reproduce:
The text was updated successfully, but these errors were encountered: