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
$ deno run -A --unstable npm:xo --helperror: Expected ';', '}' or <eof> at file:///home/codespace/.cache/deno/npm/registry.npmjs.org/globals/13.17.0/globals.json:2:12
According to the README, the globals package contains a plain JSON file and is used by ESLint. The issue seems to be related to JSON resolution (it seems like the resolver treats the JSON as a ES module), but it's just my best guess.
The xo package has a lot of dependencies so it's definitely not a minimal reproduction. Pardon me for not having a better one.
The text was updated successfully, but these errors were encountered:
kidonng
changed the title
Error require() JSON files when using npm specifiers
Failed to resolve JSON files when using npm specifiers
Oct 1, 2022
deno run -A --unstable test.js
error: Expected ';', '}' or <eof> at file:///Users/ib/Library/Caches/deno/npm/registry.npmjs.org/globals/13.17.0/globals.json:2:12
Deno version: 1.26.0
According to the README, the
globals
package contains a plain JSON file and is used by ESLint. The issue seems to be related to JSON resolution (it seems like the resolver treats the JSON as a ES module), but it's just my best guess.The
xo
package has a lot of dependencies so it's definitely not a minimal reproduction. Pardon me for not having a better one.The text was updated successfully, but these errors were encountered: