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
when using tools/build.py to build deno, if deno is under a node_modules folder, it can not work.
/Users/jingweicai/Documents/code/node_modules/deno/tools/ts_library_builder/main.ts:1
(function (exports, require, module, __filename, __dirname) { import * as path from "path";
^
SyntaxError: Unexpected token *
at new Script (vm.js:79:7)
at createScript (vm.js:251:10)
at Object.runInThisContext (vm.js:303:10)
at Module._compile (internal/modules/cjs/loader.js:657:28)
at Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Object.require.extensions.(anonymous function) [as .ts] (/Users/jingweicai/Documents/code/node_modules/deno/third_party/node_modules/ts-node/src/index.ts:431:14)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
[322/540] ACTION //build_extra/rust:unicode_segmentation_rustc(//build/toolchain/mac:clang_x64)
ninja: build stopped: subcommand failed.
And i figure out it is because: ts-node won't compile code under node_modules folder.
see the ts-node issue: TypeStrong/ts-node#505 (comment)
When generating the compiled code gen/lib/lib.deno_runtime.d.ts, this error hanppens.
I open this issue to remind others not to put deno under any node_modules folder.
The text was updated successfully, but these errors were encountered:
when using
tools/build.py
to builddeno
, ifdeno
is under anode_modules
folder, it can not work.And i figure out it is because:
ts-node
won't compile code undernode_modules
folder.see the
ts-node
issue: TypeStrong/ts-node#505 (comment)When generating the compiled code
gen/lib/lib.deno_runtime.d.ts
, this error hanppens.I open this issue to remind others not to put
deno
under anynode_modules
folder.The text was updated successfully, but these errors were encountered: