mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Bump version to 4.6.0-beta, accept baselines, and LKG.
This commit is contained in:
committed by
GitHub
parent
5e09e86612
commit
40c4fac049
+1
-1
@@ -2,7 +2,7 @@
|
||||
"name": "typescript",
|
||||
"author": "Microsoft Corp.",
|
||||
"homepage": "https://www.typescriptlang.org/",
|
||||
"version": "4.6.0",
|
||||
"version": "4.6.0-beta",
|
||||
"license": "Apache-2.0",
|
||||
"description": "TypeScript is a language for application scale JavaScript development",
|
||||
"keywords": [
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace ts {
|
||||
// The following is baselined as a literal template type without intervention
|
||||
/** The version of the TypeScript compiler release */
|
||||
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
||||
export const version: string = `${versionMajorMinor}.0-dev`;
|
||||
export const version = `${versionMajorMinor}.0-beta`;
|
||||
|
||||
/**
|
||||
* Type of objects whose values are all of the same type.
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/compiler/a.ts (0 errors) ====
|
||||
declare var dec: any, __decorate: any;
|
||||
@dec export class A {
|
||||
}
|
||||
|
||||
const o = { a: 1 };
|
||||
const y = { ...o };
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/compiler/a.ts (0 errors) ====
|
||||
declare var dec: any, __decorate: any;
|
||||
@dec export class A {
|
||||
}
|
||||
|
||||
const o = { a: 1 };
|
||||
const y = { ...o };
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/compiler/mod.mts(1,52): error TS2837: Import assertion values must be string literal expressions.
|
||||
tests/cases/compiler/mod.mts(3,52): error TS2837: Import assertion values must be string literal expressions.
|
||||
tests/cases/compiler/mod.mts(5,52): error TS2837: Import assertion values must be string literal expressions.
|
||||
@@ -6,6 +7,7 @@ tests/cases/compiler/mod.mts(9,52): error TS2837: Import assertion values must b
|
||||
tests/cases/compiler/mod.mts(11,66): error TS2837: Import assertion values must be string literal expressions.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/compiler/mod.mts (6 errors) ====
|
||||
import * as thing1 from "./mod.mjs" assert {field: 0};
|
||||
~
|
||||
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
error TS4124: Compiler option 'moduleResolution' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'moduleResolution' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/compiler/node_modules/pkg/package.json (0 errors) ====
|
||||
{
|
||||
"name": "pkg",
|
||||
"version": "0.0.1",
|
||||
"exports": "./entrypoint.js"
|
||||
}
|
||||
==== tests/cases/compiler/node_modules/pkg/entrypoint.d.ts (0 errors) ====
|
||||
export declare function thing(): void;
|
||||
==== tests/cases/compiler/index.ts (0 errors) ====
|
||||
import * as p from "pkg";
|
||||
p.thing();
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
error TS4124: Compiler option 'moduleResolution' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'moduleResolution' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/compiler/node_modules/pkg/package.json (0 errors) ====
|
||||
{
|
||||
"name": "pkg",
|
||||
"version": "0.0.1",
|
||||
"exports": "./entrypoint.js"
|
||||
}
|
||||
==== tests/cases/compiler/node_modules/pkg/entrypoint.d.ts (0 errors) ====
|
||||
export declare function thing(): void;
|
||||
==== tests/cases/compiler/index.ts (0 errors) ====
|
||||
import * as p from "pkg";
|
||||
p.thing();
|
||||
+2
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/compiler/index.ts(1,20): error TS2307: Cannot find module 'pkg' or its corresponding type declarations.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/compiler/node_modules/pkg/package.json (0 errors) ====
|
||||
{
|
||||
"name": "pkg",
|
||||
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/compiler/node_modules/pkg/package.json (0 errors) ====
|
||||
{
|
||||
"name": "pkg",
|
||||
"version": "0.0.1",
|
||||
"exports": "./entrypoint.js"
|
||||
}
|
||||
==== tests/cases/compiler/node_modules/pkg/entrypoint.d.ts (0 errors) ====
|
||||
export declare function thing(): void;
|
||||
==== tests/cases/compiler/index.ts (0 errors) ====
|
||||
import * as p from "pkg";
|
||||
p.thing();
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/compiler/node_modules/pkg/package.json (0 errors) ====
|
||||
{
|
||||
"name": "pkg",
|
||||
"version": "0.0.1",
|
||||
"exports": "./entrypoint.js"
|
||||
}
|
||||
==== tests/cases/compiler/node_modules/pkg/entrypoint.d.ts (0 errors) ====
|
||||
export declare function thing(): void;
|
||||
==== tests/cases/compiler/index.ts (0 errors) ====
|
||||
import * as p from "pkg";
|
||||
p.thing();
|
||||
+2
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/compiler/index.ts(1,20): error TS2307: Cannot find module 'pkg' or its corresponding type declarations.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/compiler/node_modules/pkg/package.json (0 errors) ====
|
||||
{
|
||||
"name": "pkg",
|
||||
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/compiler/node_modules/pkg/package.json (0 errors) ====
|
||||
{
|
||||
"name": "pkg",
|
||||
"version": "0.0.1",
|
||||
"exports": "./entrypoint.js"
|
||||
}
|
||||
==== tests/cases/compiler/node_modules/pkg/entrypoint.d.ts (0 errors) ====
|
||||
export declare function thing(): void;
|
||||
==== tests/cases/compiler/index.ts (0 errors) ====
|
||||
import * as p from "pkg";
|
||||
p.thing();
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/compiler/node_modules/pkg/package.json (0 errors) ====
|
||||
{
|
||||
"name": "pkg",
|
||||
"version": "0.0.1",
|
||||
"exports": "./entrypoint.js"
|
||||
}
|
||||
==== tests/cases/compiler/node_modules/pkg/entrypoint.d.ts (0 errors) ====
|
||||
export declare function thing(): void;
|
||||
==== tests/cases/compiler/index.ts (0 errors) ====
|
||||
import * as p from "pkg";
|
||||
p.thing();
|
||||
@@ -1,7 +1,9 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
/src/bar.mts(2,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean './foo.mjs'?
|
||||
/src/bar.mts(3,21): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Consider adding an extension to the import path.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== /src/foo.mts (0 errors) ====
|
||||
export function foo() {
|
||||
return "";
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
/src/buzz.mts(2,22): error TS2307: Cannot find module './foo' or its corresponding type declarations.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== /src/buzz.mts (1 errors) ====
|
||||
// Extensionless relative path cjs import in an ES module
|
||||
import foo = require("./foo"); // should error, should not ask for extension
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
/src/bar.mts(2,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean './foo.jsx'?
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== /src/foo.tsx (0 errors) ====
|
||||
export function foo() {
|
||||
return "";
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
/src/bar.mts(2,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean './foo.js'?
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== /src/foo.tsx (0 errors) ====
|
||||
export function foo() {
|
||||
return "";
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
/src/buzz.mts(2,8): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Consider adding an extension to the import path.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== /src/buzz.mts (1 errors) ====
|
||||
// Extensionless relative path dynamic import in an ES module
|
||||
import("./foo").then(x => x); // should error, ask for extension
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
/src/bar.cts(4,21): error TS2307: Cannot find module './foo' or its corresponding type declarations.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== /src/bar.cts (1 errors) ====
|
||||
// Extensionless relative path import statement in a cjs module
|
||||
// Import statements are not allowed in cjs files,
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
/src/bar.cts(2,22): error TS2307: Cannot find module './foo' or its corresponding type declarations.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== /src/bar.cts (1 errors) ====
|
||||
// Extensionless relative path cjs import in a cjs module
|
||||
import foo = require("./foo"); // should error, should not ask for extension
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
/src/bar.cts(2,8): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Consider adding an extension to the import path.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== /src/bar.cts (1 errors) ====
|
||||
// Extensionless relative path dynamic import in a cjs module
|
||||
import("./foo").then(x => x); // should error, ask for extension
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(2,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/index.js (0 errors) ====
|
||||
// esm format file
|
||||
import * as self from "package";
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(2,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/index.js (0 errors) ====
|
||||
// esm format file
|
||||
import * as self from "package";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.cts(2,21): error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/index.cts(3,21): error TS1471: Module './index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/index.cts(6,21): error TS1471: Module './subfolder/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
@@ -81,6 +82,7 @@ tests/cases/conformance/node/index.ts(83,21): error TS2834: Relative import path
|
||||
tests/cases/conformance/node/index.ts(84,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean './subfolder2/another/index.mjs'?
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/subfolder/index.ts (0 errors) ====
|
||||
// cjs format file
|
||||
const x = 1;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.cts(2,21): error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/index.cts(3,21): error TS1471: Module './index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/index.cts(6,21): error TS1471: Module './subfolder/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
@@ -81,6 +82,7 @@ tests/cases/conformance/node/index.ts(83,21): error TS2834: Relative import path
|
||||
tests/cases/conformance/node/index.ts(84,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean './subfolder2/another/index.mjs'?
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/subfolder/index.ts (0 errors) ====
|
||||
// cjs format file
|
||||
const x = 1;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(2,21): error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(3,21): error TS1471: Module './index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(6,21): error TS1471: Module './subfolder/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
@@ -114,6 +115,7 @@ tests/cases/conformance/node/allowJs/index.mjs(83,21): error TS2834: Relative im
|
||||
tests/cases/conformance/node/allowJs/index.mjs(84,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean './subfolder2/another/index.mjs'?
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/index.js (0 errors) ====
|
||||
// cjs format file
|
||||
const x = 1;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(2,21): error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(3,21): error TS1471: Module './index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(6,21): error TS1471: Module './subfolder/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
@@ -114,6 +115,7 @@ tests/cases/conformance/node/allowJs/index.mjs(83,21): error TS2834: Relative im
|
||||
tests/cases/conformance/node/allowJs/index.mjs(84,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean './subfolder2/another/index.mjs'?
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/index.js (0 errors) ====
|
||||
// cjs format file
|
||||
const x = 1;
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/foo.cjs (0 errors) ====
|
||||
exports.foo = "foo"
|
||||
==== tests/cases/conformance/node/allowJs/bar.ts (0 errors) ====
|
||||
import foo from "./foo.cjs"
|
||||
foo.foo;
|
||||
@@ -0,0 +1,9 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/foo.cjs (0 errors) ====
|
||||
exports.foo = "foo"
|
||||
==== tests/cases/conformance/node/allowJs/bar.ts (0 errors) ====
|
||||
import foo from "./foo.cjs"
|
||||
foo.foo;
|
||||
+2
@@ -1,9 +1,11 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(3,22): error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(4,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/allowJs/node_modules/inner/index.d.mts(2,13): error TS2303: Circular definition of import alias 'cjs'.
|
||||
tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/index.js (0 errors) ====
|
||||
// esm format file
|
||||
import * as cjs from "package/cjs";
|
||||
|
||||
+2
@@ -1,9 +1,11 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(3,22): error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(4,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/allowJs/node_modules/inner/index.d.mts(2,13): error TS2303: Circular definition of import alias 'cjs'.
|
||||
tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/index.js (0 errors) ====
|
||||
// esm format file
|
||||
import * as cjs from "package/cjs";
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/index.js (0 errors) ====
|
||||
// cjs format file
|
||||
export async function main() {
|
||||
const { readFile } = await import("fs");
|
||||
}
|
||||
==== tests/cases/conformance/node/allowJs/index.js (0 errors) ====
|
||||
// esm format file
|
||||
export async function main() {
|
||||
const { readFile } = await import("fs");
|
||||
}
|
||||
==== tests/cases/conformance/node/allowJs/package.json (0 errors) ====
|
||||
{
|
||||
"name": "package",
|
||||
"private": true,
|
||||
"type": "module"
|
||||
}
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/package.json (0 errors) ====
|
||||
{
|
||||
"type": "commonjs"
|
||||
}
|
||||
==== tests/cases/conformance/node/allowJs/types.d.ts (0 errors) ====
|
||||
declare module "fs";
|
||||
@@ -0,0 +1,26 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/index.js (0 errors) ====
|
||||
// cjs format file
|
||||
export async function main() {
|
||||
const { readFile } = await import("fs");
|
||||
}
|
||||
==== tests/cases/conformance/node/allowJs/index.js (0 errors) ====
|
||||
// esm format file
|
||||
export async function main() {
|
||||
const { readFile } = await import("fs");
|
||||
}
|
||||
==== tests/cases/conformance/node/allowJs/package.json (0 errors) ====
|
||||
{
|
||||
"name": "package",
|
||||
"private": true,
|
||||
"type": "module"
|
||||
}
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/package.json (0 errors) ====
|
||||
{
|
||||
"type": "commonjs"
|
||||
}
|
||||
==== tests/cases/conformance/node/allowJs/types.d.ts (0 errors) ====
|
||||
declare module "fs";
|
||||
@@ -1,9 +1,11 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/file.js(4,1): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
|
||||
tests/cases/conformance/node/allowJs/index.js(3,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead.
|
||||
tests/cases/conformance/node/allowJs/index.js(3,1): error TS8003: 'export =' can only be used in TypeScript files.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(3,1): error TS8003: 'export =' can only be used in TypeScript files.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/index.js (1 errors) ====
|
||||
// cjs format file
|
||||
const a = {};
|
||||
|
||||
+2
@@ -1,9 +1,11 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/file.js(4,1): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
|
||||
tests/cases/conformance/node/allowJs/index.js(3,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead.
|
||||
tests/cases/conformance/node/allowJs/index.js(3,1): error TS8003: 'export =' can only be used in TypeScript files.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(3,1): error TS8003: 'export =' can only be used in TypeScript files.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/index.js (1 errors) ====
|
||||
// cjs format file
|
||||
const a = {};
|
||||
|
||||
+2
@@ -1,9 +1,11 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(2,10): error TS2441: Duplicate identifier 'require'. Compiler reserves name 'require' in top level scope of a module.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(3,7): error TS2441: Duplicate identifier 'exports'. Compiler reserves name 'exports' in top level scope of a module.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(4,7): error TS2725: Class name cannot be 'Object' when targeting ES5 with module Node12.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(5,14): error TS1216: Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/index.js (4 errors) ====
|
||||
// cjs format file
|
||||
function require() {}
|
||||
|
||||
+2
@@ -1,9 +1,11 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(2,10): error TS2441: Duplicate identifier 'require'. Compiler reserves name 'require' in top level scope of a module.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(3,7): error TS2441: Duplicate identifier 'exports'. Compiler reserves name 'exports' in top level scope of a module.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(4,7): error TS2725: Class name cannot be 'Object' when targeting ES5 with module NodeNext.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(5,14): error TS1216: Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/index.js (4 errors) ====
|
||||
// cjs format file
|
||||
function require() {}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/file.js(4,1): error TS8002: 'import ... =' can only be used in TypeScript files.
|
||||
tests/cases/conformance/node/allowJs/file.js(6,1): error TS8002: 'import ... =' can only be used in TypeScript files.
|
||||
tests/cases/conformance/node/allowJs/index.js(2,1): error TS8002: 'import ... =' can only be used in TypeScript files.
|
||||
@@ -6,6 +7,7 @@ tests/cases/conformance/node/allowJs/subfolder/index.js(2,1): error TS8002: 'imp
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(4,1): error TS8002: 'import ... =' can only be used in TypeScript files.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/index.js (2 errors) ====
|
||||
// cjs format file
|
||||
import fs = require("fs");
|
||||
|
||||
+2
@@ -1,3 +1,4 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/file.js(4,1): error TS8002: 'import ... =' can only be used in TypeScript files.
|
||||
tests/cases/conformance/node/allowJs/file.js(6,1): error TS8002: 'import ... =' can only be used in TypeScript files.
|
||||
tests/cases/conformance/node/allowJs/index.js(2,1): error TS8002: 'import ... =' can only be used in TypeScript files.
|
||||
@@ -6,6 +7,7 @@ tests/cases/conformance/node/allowJs/subfolder/index.js(2,1): error TS8002: 'imp
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(4,1): error TS8002: 'import ... =' can only be used in TypeScript files.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/index.js (2 errors) ====
|
||||
// cjs format file
|
||||
import fs = require("fs");
|
||||
|
||||
+2
@@ -1,7 +1,9 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(2,9): error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(4,1): error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/index.js (2 errors) ====
|
||||
// cjs format file
|
||||
import {default as _fs} from "fs";
|
||||
|
||||
+2
@@ -1,7 +1,9 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(2,9): error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(4,1): error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/index.js (2 errors) ====
|
||||
// cjs format file
|
||||
import {default as _fs} from "fs";
|
||||
|
||||
+2
@@ -1,7 +1,9 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.ts(2,1): error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.ts(3,1): error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/index.ts (2 errors) ====
|
||||
// cjs format file
|
||||
export * from "fs";
|
||||
|
||||
+2
@@ -1,7 +1,9 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.ts(2,1): error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.ts(3,1): error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/index.ts (2 errors) ====
|
||||
// cjs format file
|
||||
export * from "fs";
|
||||
|
||||
+2
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(2,9): error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/index.js (1 errors) ====
|
||||
// cjs format file
|
||||
export {default} from "fs";
|
||||
|
||||
+2
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(2,9): error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/index.js (1 errors) ====
|
||||
// cjs format file
|
||||
export {default} from "fs";
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(2,11): error TS1470: The 'import.meta' meta-property is not allowed in files which will build into CommonJS output.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/index.js (1 errors) ====
|
||||
// cjs format file
|
||||
const x = import.meta.url;
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(2,11): error TS1470: The 'import.meta' meta-property is not allowed in files which will build into CommonJS output.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/index.js (1 errors) ====
|
||||
// cjs format file
|
||||
const x = import.meta.url;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(3,22): error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(4,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(9,23): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
@@ -6,6 +7,7 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(2,13): error
|
||||
tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/index.js (0 errors) ====
|
||||
// esm format file
|
||||
import * as cjs from "package/cjs";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(3,22): error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(4,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(9,23): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
@@ -6,6 +7,7 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(2,13): error
|
||||
tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/index.js (0 errors) ====
|
||||
// esm format file
|
||||
import * as cjs from "package/cjs";
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(3,22): error TS1471: Module '#mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(4,23): error TS1471: Module '#type' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/index.js (0 errors) ====
|
||||
// esm format file
|
||||
import * as cjs from "#cjs";
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(3,22): error TS1471: Module '#mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(4,23): error TS1471: Module '#type' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/index.js (0 errors) ====
|
||||
// esm format file
|
||||
import * as cjs from "#cjs";
|
||||
|
||||
+2
@@ -1,9 +1,11 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(3,23): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/allowJs/node_modules/inner/index.d.cts(3,22): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'.
|
||||
tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/index.js (0 errors) ====
|
||||
// esm format file
|
||||
import * as cjsi from "inner/cjs/index";
|
||||
|
||||
+2
@@ -1,9 +1,11 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(3,23): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/allowJs/node_modules/inner/index.d.cts(3,22): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'.
|
||||
tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error TS1471: Module 'inner/mjs/index' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/index.js (0 errors) ====
|
||||
// esm format file
|
||||
import * as cjsi from "inner/cjs/index";
|
||||
|
||||
+2
@@ -1,3 +1,4 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(2,23): error TS2307: Cannot find module 'inner/cjs/index.cjs' or its corresponding type declarations.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(3,23): error TS2307: Cannot find module 'inner/mjs/index.mjs' or its corresponding type declarations.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(4,24): error TS2307: Cannot find module 'inner/js/index.js' or its corresponding type declarations.
|
||||
@@ -18,6 +19,7 @@ tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error
|
||||
tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(4,23): error TS2307: Cannot find module 'inner/js/index.js' or its corresponding type declarations.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/index.js (3 errors) ====
|
||||
// esm format file
|
||||
import * as cjsi from "inner/cjs/index.cjs";
|
||||
|
||||
+2
@@ -1,9 +1,11 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/index.cjs(3,23): error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/allowJs/node_modules/inner/index.d.cts(3,22): error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'.
|
||||
tests/cases/conformance/node/allowJs/node_modules/inner/index.d.ts(3,22): error TS1471: Module 'inner/mjs/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/index.js (0 errors) ====
|
||||
// esm format file
|
||||
import * as cjsi from "inner/cjs/index.cjs";
|
||||
|
||||
+2
@@ -1,3 +1,4 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/index.js(3,1): error TS8002: 'import ... =' can only be used in TypeScript files.
|
||||
tests/cases/conformance/node/allowJs/index.js(3,22): error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/allowJs/index.js(5,1): error TS8002: 'import ... =' can only be used in TypeScript files.
|
||||
@@ -7,6 +8,7 @@ tests/cases/conformance/node/allowJs/subfolder/index.js(3,22): error TS1471: Mod
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(5,1): error TS8002: 'import ... =' can only be used in TypeScript files.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/index.js (4 errors) ====
|
||||
// cjs format file
|
||||
import {h} from "../index.js";
|
||||
|
||||
+2
@@ -1,3 +1,4 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/index.js(3,1): error TS8002: 'import ... =' can only be used in TypeScript files.
|
||||
tests/cases/conformance/node/allowJs/index.js(3,22): error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/allowJs/index.js(5,1): error TS8002: 'import ... =' can only be used in TypeScript files.
|
||||
@@ -7,6 +8,7 @@ tests/cases/conformance/node/allowJs/subfolder/index.js(3,22): error TS1471: Mod
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(5,1): error TS8002: 'import ... =' can only be used in TypeScript files.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/index.js (4 errors) ====
|
||||
// cjs format file
|
||||
import {h} from "../index.js";
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/index.js(2,11): error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
|
||||
tests/cases/conformance/node/allowJs/index.js(4,5): error TS1432: Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(2,11): error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(4,5): error TS1432: Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/index.js (2 errors) ====
|
||||
// cjs format file
|
||||
const x = await 1;
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(2,11): error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
|
||||
tests/cases/conformance/node/allowJs/subfolder/index.js(4,5): error TS1432: Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/allowJs/subfolder/index.js (2 errors) ====
|
||||
// cjs format file
|
||||
const x = await 1;
|
||||
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/subfolder/index.ts (0 errors) ====
|
||||
// cjs format file
|
||||
export const a = 1;
|
||||
==== tests/cases/conformance/node/index.ts (0 errors) ====
|
||||
// esm format file
|
||||
import mod from "./subfolder/index.js";
|
||||
mod;
|
||||
==== tests/cases/conformance/node/package.json (0 errors) ====
|
||||
{
|
||||
"name": "package",
|
||||
"private": true,
|
||||
"type": "module"
|
||||
}
|
||||
==== tests/cases/conformance/node/subfolder/package.json (0 errors) ====
|
||||
{
|
||||
"type": "commonjs"
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/subfolder/index.ts (0 errors) ====
|
||||
// cjs format file
|
||||
export const a = 1;
|
||||
==== tests/cases/conformance/node/index.ts (0 errors) ====
|
||||
// esm format file
|
||||
import mod from "./subfolder/index.js";
|
||||
mod;
|
||||
==== tests/cases/conformance/node/package.json (0 errors) ====
|
||||
{
|
||||
"name": "package",
|
||||
"private": true,
|
||||
"type": "module"
|
||||
}
|
||||
==== tests/cases/conformance/node/subfolder/package.json (0 errors) ====
|
||||
{
|
||||
"type": "commonjs"
|
||||
}
|
||||
+2
@@ -1,9 +1,11 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.cts(3,22): error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/index.cts(4,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/node_modules/inner/index.d.mts(2,13): error TS2303: Circular definition of import alias 'cjs'.
|
||||
tests/cases/conformance/node/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/index.ts (0 errors) ====
|
||||
// esm format file
|
||||
import * as cjs from "package/cjs";
|
||||
|
||||
+2
@@ -1,9 +1,11 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.cts(3,22): error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/index.cts(4,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/node_modules/inner/index.d.mts(2,13): error TS2303: Circular definition of import alias 'cjs'.
|
||||
tests/cases/conformance/node/node_modules/inner/index.d.ts(2,13): error TS2303: Circular definition of import alias 'cjs'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/index.ts (0 errors) ====
|
||||
// esm format file
|
||||
import * as cjs from "package/cjs";
|
||||
|
||||
+73
@@ -0,0 +1,73 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/index.ts (0 errors) ====
|
||||
// esm format file
|
||||
export {};
|
||||
==== tests/cases/conformance/node/index.mts (0 errors) ====
|
||||
// esm format file
|
||||
export {};
|
||||
==== tests/cases/conformance/node/index.cts (0 errors) ====
|
||||
// cjs format file
|
||||
export {};
|
||||
==== tests/cases/conformance/node/other.ts (0 errors) ====
|
||||
// esm format file
|
||||
export const a = await import("package/cjs");
|
||||
export const b = await import("package/mjs");
|
||||
export const c = await import("package");
|
||||
export const f = await import("inner");
|
||||
==== tests/cases/conformance/node/other2.ts (0 errors) ====
|
||||
// esm format file
|
||||
export const d = await import("inner/cjs");
|
||||
export const e = await import("inner/mjs");
|
||||
==== tests/cases/conformance/node/other.mts (0 errors) ====
|
||||
// esm format file
|
||||
export const a = await import("package/cjs");
|
||||
export const b = await import("package/mjs");
|
||||
export const c = await import("package");
|
||||
export const f = await import("inner");
|
||||
==== tests/cases/conformance/node/other2.mts (0 errors) ====
|
||||
// esm format file
|
||||
export const d = await import("inner/cjs");
|
||||
export const e = await import("inner/mjs");
|
||||
==== tests/cases/conformance/node/other.cts (0 errors) ====
|
||||
// cjs format file, no TLA
|
||||
export const a = import("package/cjs");
|
||||
export const b = import("package/mjs");
|
||||
export const c = import("package");
|
||||
export const f = import("inner");
|
||||
==== tests/cases/conformance/node/other2.cts (0 errors) ====
|
||||
// cjs format file, no TLA
|
||||
export const d = import("inner/cjs");
|
||||
export const e = import("inner/mjs");
|
||||
==== tests/cases/conformance/node/node_modules/inner/index.d.ts (0 errors) ====
|
||||
// cjs format file
|
||||
export const cjsMain = true;
|
||||
==== tests/cases/conformance/node/node_modules/inner/index.d.mts (0 errors) ====
|
||||
// esm format file
|
||||
export const esm = true;
|
||||
==== tests/cases/conformance/node/node_modules/inner/index.d.cts (0 errors) ====
|
||||
// cjs format file
|
||||
export const cjsNonmain = true;
|
||||
==== tests/cases/conformance/node/package.json (0 errors) ====
|
||||
{
|
||||
"name": "package",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"exports": {
|
||||
"./cjs": "./index.cjs",
|
||||
"./mjs": "./index.mjs",
|
||||
".": "./index.js"
|
||||
}
|
||||
}
|
||||
==== tests/cases/conformance/node/node_modules/inner/package.json (0 errors) ====
|
||||
{
|
||||
"name": "inner",
|
||||
"private": true,
|
||||
"exports": {
|
||||
"./cjs": "./index.cjs",
|
||||
"./mjs": "./index.mjs",
|
||||
".": "./index.js"
|
||||
}
|
||||
}
|
||||
-109
@@ -169,112 +169,3 @@ export declare const d: Promise<{
|
||||
cjsNonmain: true;
|
||||
}>;
|
||||
export declare const e: Promise<typeof import("inner/mjs")>;
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
tests/cases/conformance/node/other.d.cts(4,47): error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/other.d.cts(5,47): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/other2.d.cts(5,47): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
|
||||
|
||||
==== tests/cases/conformance/node/index.d.ts (0 errors) ====
|
||||
export {};
|
||||
|
||||
==== tests/cases/conformance/node/index.d.mts (0 errors) ====
|
||||
export {};
|
||||
|
||||
==== tests/cases/conformance/node/index.d.cts (0 errors) ====
|
||||
export {};
|
||||
|
||||
==== tests/cases/conformance/node/other.d.ts (0 errors) ====
|
||||
export declare const a: {
|
||||
default: typeof import("package/cjs");
|
||||
};
|
||||
export declare const b: typeof import("package/mjs");
|
||||
export declare const c: typeof import("package");
|
||||
export declare const f: {
|
||||
default: typeof import("inner");
|
||||
cjsMain: true;
|
||||
};
|
||||
|
||||
==== tests/cases/conformance/node/other2.d.ts (0 errors) ====
|
||||
export declare const d: {
|
||||
default: typeof import("inner/cjs");
|
||||
cjsNonmain: true;
|
||||
};
|
||||
export declare const e: typeof import("inner/mjs");
|
||||
|
||||
==== tests/cases/conformance/node/other.d.mts (0 errors) ====
|
||||
export declare const a: {
|
||||
default: typeof import("package/cjs");
|
||||
};
|
||||
export declare const b: typeof import("package/mjs");
|
||||
export declare const c: typeof import("package");
|
||||
export declare const f: {
|
||||
default: typeof import("inner");
|
||||
cjsMain: true;
|
||||
};
|
||||
|
||||
==== tests/cases/conformance/node/other2.d.mts (0 errors) ====
|
||||
export declare const d: {
|
||||
default: typeof import("inner/cjs");
|
||||
cjsNonmain: true;
|
||||
};
|
||||
export declare const e: typeof import("inner/mjs");
|
||||
|
||||
==== tests/cases/conformance/node/other.d.cts (2 errors) ====
|
||||
export declare const a: Promise<{
|
||||
default: typeof import("package/cjs");
|
||||
}>;
|
||||
export declare const b: Promise<typeof import("package/mjs")>;
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
export declare const c: Promise<typeof import("package")>;
|
||||
~~~~~~~~~
|
||||
!!! error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
export declare const f: Promise<{
|
||||
default: typeof import("inner");
|
||||
cjsMain: true;
|
||||
}>;
|
||||
|
||||
==== tests/cases/conformance/node/other2.d.cts (1 errors) ====
|
||||
export declare const d: Promise<{
|
||||
default: typeof import("inner/cjs");
|
||||
cjsNonmain: true;
|
||||
}>;
|
||||
export declare const e: Promise<typeof import("inner/mjs")>;
|
||||
~~~~~~~~~~~
|
||||
!!! error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
|
||||
==== tests/cases/conformance/node/node_modules/inner/index.d.ts (0 errors) ====
|
||||
// cjs format file
|
||||
export const cjsMain = true;
|
||||
==== tests/cases/conformance/node/node_modules/inner/index.d.mts (0 errors) ====
|
||||
// esm format file
|
||||
export const esm = true;
|
||||
==== tests/cases/conformance/node/node_modules/inner/index.d.cts (0 errors) ====
|
||||
// cjs format file
|
||||
export const cjsNonmain = true;
|
||||
==== tests/cases/conformance/node/package.json (0 errors) ====
|
||||
{
|
||||
"name": "package",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"exports": {
|
||||
"./cjs": "./index.cjs",
|
||||
"./mjs": "./index.mjs",
|
||||
".": "./index.js"
|
||||
}
|
||||
}
|
||||
==== tests/cases/conformance/node/node_modules/inner/package.json (0 errors) ====
|
||||
{
|
||||
"name": "inner",
|
||||
"private": true,
|
||||
"exports": {
|
||||
"./cjs": "./index.cjs",
|
||||
"./mjs": "./index.mjs",
|
||||
".": "./index.js"
|
||||
}
|
||||
}
|
||||
+2
@@ -1,3 +1,4 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.cts(3,22): error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/index.cts(4,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/index.cts(9,23): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
@@ -8,6 +9,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471:
|
||||
tests/cases/conformance/node/node_modules/inner/index.d.ts(5,1): error TS1036: Statements are not allowed in ambient contexts.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/index.ts (0 errors) ====
|
||||
// esm format file
|
||||
import * as cjs from "package/cjs";
|
||||
|
||||
+2
@@ -1,3 +1,4 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.cts(3,22): error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/index.cts(4,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/index.cts(9,23): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
@@ -8,6 +9,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471:
|
||||
tests/cases/conformance/node/node_modules/inner/index.d.ts(5,1): error TS1036: Statements are not allowed in ambient contexts.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/index.ts (0 errors) ====
|
||||
// esm format file
|
||||
import * as cjs from "package/cjs";
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/subfolder/index.ts (0 errors) ====
|
||||
// cjs format file
|
||||
export async function main() {
|
||||
const { readFile } = await import("fs");
|
||||
}
|
||||
==== tests/cases/conformance/node/index.ts (0 errors) ====
|
||||
// esm format file
|
||||
export async function main() {
|
||||
const { readFile } = await import("fs");
|
||||
}
|
||||
==== tests/cases/conformance/node/package.json (0 errors) ====
|
||||
{
|
||||
"name": "package",
|
||||
"private": true,
|
||||
"type": "module"
|
||||
}
|
||||
==== tests/cases/conformance/node/subfolder/package.json (0 errors) ====
|
||||
{
|
||||
"type": "commonjs"
|
||||
}
|
||||
==== tests/cases/conformance/node/types.d.ts (0 errors) ====
|
||||
declare module "fs";
|
||||
@@ -0,0 +1,26 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/subfolder/index.ts (0 errors) ====
|
||||
// cjs format file
|
||||
export async function main() {
|
||||
const { readFile } = await import("fs");
|
||||
}
|
||||
==== tests/cases/conformance/node/index.ts (0 errors) ====
|
||||
// esm format file
|
||||
export async function main() {
|
||||
const { readFile } = await import("fs");
|
||||
}
|
||||
==== tests/cases/conformance/node/package.json (0 errors) ====
|
||||
{
|
||||
"name": "package",
|
||||
"private": true,
|
||||
"type": "module"
|
||||
}
|
||||
==== tests/cases/conformance/node/subfolder/package.json (0 errors) ====
|
||||
{
|
||||
"type": "commonjs"
|
||||
}
|
||||
==== tests/cases/conformance/node/types.d.ts (0 errors) ====
|
||||
declare module "fs";
|
||||
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.ts(3,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/subfolder/index.ts (0 errors) ====
|
||||
// cjs format file
|
||||
const a = {};
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.ts(3,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/subfolder/index.ts (0 errors) ====
|
||||
// cjs format file
|
||||
const a = {};
|
||||
|
||||
+2
@@ -1,8 +1,10 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.ts(2,23): error TS2307: Cannot find module 'inner/other' or its corresponding type declarations.
|
||||
tests/cases/conformance/node/index.ts(3,14): error TS2742: The inferred type of 'a' cannot be named without a reference to './node_modules/inner/other.js'. This is likely not portable. A type annotation is necessary.
|
||||
tests/cases/conformance/node/index.ts(3,19): error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/index.ts (3 errors) ====
|
||||
// esm format file
|
||||
import { Thing } from "inner/other";
|
||||
|
||||
+2
@@ -1,7 +1,9 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.ts(2,23): error TS2307: Cannot find module 'inner/other' or its corresponding type declarations.
|
||||
tests/cases/conformance/node/index.ts(3,14): error TS2742: The inferred type of 'a' cannot be named without a reference to './node_modules/inner/other.js'. This is likely not portable. A type annotation is necessary.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/index.ts (2 errors) ====
|
||||
// esm format file
|
||||
import { Thing } from "inner/other";
|
||||
|
||||
+2
@@ -1,7 +1,9 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.ts(2,23): error TS2307: Cannot find module 'inner/other.js' or its corresponding type declarations.
|
||||
tests/cases/conformance/node/index.ts(3,19): error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/index.ts (2 errors) ====
|
||||
// esm format file
|
||||
import { Thing } from "inner/other.js"; // should fail
|
||||
|
||||
+2
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.ts(2,23): error TS2307: Cannot find module 'inner/other.js' or its corresponding type declarations.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/index.ts (1 errors) ====
|
||||
// esm format file
|
||||
import { Thing } from "inner/other.js"; // should fail
|
||||
|
||||
+2
@@ -1,7 +1,9 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.ts(2,23): error TS2307: Cannot find module 'inner/other' or its corresponding type declarations.
|
||||
tests/cases/conformance/node/index.ts(3,19): error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/index.ts (2 errors) ====
|
||||
// esm format file
|
||||
import { Thing } from "inner/other";
|
||||
|
||||
+2
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.ts(2,23): error TS2307: Cannot find module 'inner/other' or its corresponding type declarations.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/index.ts (1 errors) ====
|
||||
// esm format file
|
||||
import { Thing } from "inner/other";
|
||||
|
||||
+2
@@ -1,8 +1,10 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.ts(2,23): error TS2307: Cannot find module 'inner/other' or its corresponding type declarations.
|
||||
tests/cases/conformance/node/index.ts(3,19): error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
|
||||
tests/cases/conformance/node/index.ts(3,32): error TS2307: Cannot find module 'inner/index.js' or its corresponding type declarations.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/index.ts (3 errors) ====
|
||||
// esm format file
|
||||
import { Thing } from "inner/other";
|
||||
|
||||
+2
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.ts(2,23): error TS2307: Cannot find module 'inner/other' or its corresponding type declarations.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/index.ts (1 errors) ====
|
||||
// esm format file
|
||||
import { Thing } from "inner/other";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.cts(2,12): error TS7060: This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint.
|
||||
tests/cases/conformance/node/index.cts(2,20): error TS7059: This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.
|
||||
tests/cases/conformance/node/index.cts(2,23): error TS7059: This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.
|
||||
@@ -24,6 +25,7 @@ tests/cases/conformance/node/subfolder2/index.mts(2,20): error TS7059: This synt
|
||||
tests/cases/conformance/node/subfolder2/index.mts(2,23): error TS7059: This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/subfolder/index.ts (0 errors) ====
|
||||
// cjs format file
|
||||
const x = <T>() => <T><any>(void 0);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.cts(2,12): error TS7060: This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint.
|
||||
tests/cases/conformance/node/index.cts(2,20): error TS7059: This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.
|
||||
tests/cases/conformance/node/index.cts(2,23): error TS7059: This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.
|
||||
@@ -24,6 +25,7 @@ tests/cases/conformance/node/subfolder2/index.mts(2,20): error TS7059: This synt
|
||||
tests/cases/conformance/node/subfolder2/index.mts(2,23): error TS7059: This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/subfolder/index.ts (0 errors) ====
|
||||
// cjs format file
|
||||
const x = <T>() => <T><any>(void 0);
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/subfolder/index.ts(2,10): error TS2441: Duplicate identifier 'require'. Compiler reserves name 'require' in top level scope of a module.
|
||||
tests/cases/conformance/node/subfolder/index.ts(3,7): error TS2441: Duplicate identifier 'exports'. Compiler reserves name 'exports' in top level scope of a module.
|
||||
tests/cases/conformance/node/subfolder/index.ts(4,7): error TS2725: Class name cannot be 'Object' when targeting ES5 with module Node12.
|
||||
tests/cases/conformance/node/subfolder/index.ts(5,14): error TS1216: Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/subfolder/index.ts (4 errors) ====
|
||||
// cjs format file
|
||||
function require() {}
|
||||
|
||||
+2
@@ -1,9 +1,11 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/subfolder/index.ts(2,10): error TS2441: Duplicate identifier 'require'. Compiler reserves name 'require' in top level scope of a module.
|
||||
tests/cases/conformance/node/subfolder/index.ts(3,7): error TS2441: Duplicate identifier 'exports'. Compiler reserves name 'exports' in top level scope of a module.
|
||||
tests/cases/conformance/node/subfolder/index.ts(4,7): error TS2725: Class name cannot be 'Object' when targeting ES5 with module NodeNext.
|
||||
tests/cases/conformance/node/subfolder/index.ts(5,14): error TS1216: Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/subfolder/index.ts (4 errors) ====
|
||||
// cjs format file
|
||||
function require() {}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.ts(1,18): error TS7062: JSON imports are experimental in ES module mode imports.
|
||||
tests/cases/conformance/node/index.ts(1,35): error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
|
||||
tests/cases/conformance/node/otherc.cts(1,35): error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
|
||||
@@ -5,6 +6,7 @@ tests/cases/conformance/node/otherc.cts(2,22): error TS7062: JSON imports are ex
|
||||
tests/cases/conformance/node/otherc.cts(2,40): error TS1324: Dynamic imports only support a second argument when the '--module' option is set to 'esnext' or 'nodenext'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/index.ts (2 errors) ====
|
||||
import json from "./package.json" assert { type: "json" };
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.ts(1,18): error TS7062: JSON imports are experimental in ES module mode imports.
|
||||
tests/cases/conformance/node/otherc.cts(1,35): error TS2836: Import assertions are not allowed on statements that transpile to commonjs 'require' calls.
|
||||
tests/cases/conformance/node/otherc.cts(2,22): error TS7062: JSON imports are experimental in ES module mode imports.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/index.ts (1 errors) ====
|
||||
import json from "./package.json" assert { type: "json" };
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/subfolder/index.ts (0 errors) ====
|
||||
// cjs format file
|
||||
import fs = require("fs");
|
||||
fs.readFile;
|
||||
export import fs2 = require("fs");
|
||||
==== tests/cases/conformance/node/index.ts (0 errors) ====
|
||||
// esm format file
|
||||
import fs = require("fs");
|
||||
fs.readFile;
|
||||
export import fs2 = require("fs");
|
||||
==== tests/cases/conformance/node/file.ts (0 errors) ====
|
||||
// esm format file
|
||||
const __require = null;
|
||||
const _createRequire = null;
|
||||
import fs = require("fs");
|
||||
fs.readFile;
|
||||
export import fs2 = require("fs");
|
||||
==== tests/cases/conformance/node/package.json (0 errors) ====
|
||||
{
|
||||
"name": "package",
|
||||
"private": true,
|
||||
"type": "module"
|
||||
}
|
||||
==== tests/cases/conformance/node/subfolder/package.json (0 errors) ====
|
||||
{
|
||||
"type": "commonjs"
|
||||
}
|
||||
==== tests/cases/conformance/node/types.d.ts (0 errors) ====
|
||||
declare module "fs";
|
||||
@@ -0,0 +1,33 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/subfolder/index.ts (0 errors) ====
|
||||
// cjs format file
|
||||
import fs = require("fs");
|
||||
fs.readFile;
|
||||
export import fs2 = require("fs");
|
||||
==== tests/cases/conformance/node/index.ts (0 errors) ====
|
||||
// esm format file
|
||||
import fs = require("fs");
|
||||
fs.readFile;
|
||||
export import fs2 = require("fs");
|
||||
==== tests/cases/conformance/node/file.ts (0 errors) ====
|
||||
// esm format file
|
||||
const __require = null;
|
||||
const _createRequire = null;
|
||||
import fs = require("fs");
|
||||
fs.readFile;
|
||||
export import fs2 = require("fs");
|
||||
==== tests/cases/conformance/node/package.json (0 errors) ====
|
||||
{
|
||||
"name": "package",
|
||||
"private": true,
|
||||
"type": "module"
|
||||
}
|
||||
==== tests/cases/conformance/node/subfolder/package.json (0 errors) ====
|
||||
{
|
||||
"type": "commonjs"
|
||||
}
|
||||
==== tests/cases/conformance/node/types.d.ts (0 errors) ====
|
||||
declare module "fs";
|
||||
@@ -1,7 +1,9 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/subfolder/index.ts(2,9): error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
|
||||
tests/cases/conformance/node/subfolder/index.ts(4,1): error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/subfolder/index.ts (2 errors) ====
|
||||
// cjs format file
|
||||
import {default as _fs} from "fs";
|
||||
|
||||
+2
@@ -1,7 +1,9 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/subfolder/index.ts(2,9): error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
|
||||
tests/cases/conformance/node/subfolder/index.ts(4,1): error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/subfolder/index.ts (2 errors) ====
|
||||
// cjs format file
|
||||
import {default as _fs} from "fs";
|
||||
|
||||
+2
@@ -1,7 +1,9 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/subfolder/index.ts(2,1): error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
|
||||
tests/cases/conformance/node/subfolder/index.ts(3,1): error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/subfolder/index.ts (2 errors) ====
|
||||
// cjs format file
|
||||
export * from "fs";
|
||||
|
||||
+2
@@ -1,7 +1,9 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/subfolder/index.ts(2,1): error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
|
||||
tests/cases/conformance/node/subfolder/index.ts(3,1): error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/subfolder/index.ts (2 errors) ====
|
||||
// cjs format file
|
||||
export * from "fs";
|
||||
|
||||
+2
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/subfolder/index.ts(2,9): error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/subfolder/index.ts (1 errors) ====
|
||||
// cjs format file
|
||||
export {default} from "fs";
|
||||
|
||||
+2
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/subfolder/index.ts(2,9): error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/subfolder/index.ts (1 errors) ====
|
||||
// cjs format file
|
||||
export {default} from "fs";
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/subfolder/index.ts(2,11): error TS1470: The 'import.meta' meta-property is not allowed in files which will build into CommonJS output.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/subfolder/index.ts (1 errors) ====
|
||||
// cjs format file
|
||||
const x = import.meta.url;
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/subfolder/index.ts(2,11): error TS1470: The 'import.meta' meta-property is not allowed in files which will build into CommonJS output.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/subfolder/index.ts (1 errors) ====
|
||||
// cjs format file
|
||||
const x = import.meta.url;
|
||||
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/index.ts (0 errors) ====
|
||||
// esm format file
|
||||
import * as type from "#type";
|
||||
type;
|
||||
==== tests/cases/conformance/node/index.mts (0 errors) ====
|
||||
// esm format file
|
||||
import * as type from "#type";
|
||||
type;
|
||||
==== tests/cases/conformance/node/index.cts (0 errors) ====
|
||||
// esm format file
|
||||
import * as type from "#type";
|
||||
type;
|
||||
==== tests/cases/conformance/node/package.json (0 errors) ====
|
||||
{
|
||||
"name": "package",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"exports": "./index.cjs",
|
||||
"imports": {
|
||||
"#type": "package"
|
||||
}
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/index.ts (0 errors) ====
|
||||
// esm format file
|
||||
import * as type from "#type";
|
||||
type;
|
||||
==== tests/cases/conformance/node/index.mts (0 errors) ====
|
||||
// esm format file
|
||||
import * as type from "#type";
|
||||
type;
|
||||
==== tests/cases/conformance/node/index.cts (0 errors) ====
|
||||
// esm format file
|
||||
import * as type from "#type";
|
||||
type;
|
||||
==== tests/cases/conformance/node/package.json (0 errors) ====
|
||||
{
|
||||
"name": "package",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"exports": "./index.cjs",
|
||||
"imports": {
|
||||
"#type": "package"
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,10 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.cts(2,23): error TS2307: Cannot find module '#type' or its corresponding type declarations.
|
||||
tests/cases/conformance/node/index.mts(2,23): error TS2307: Cannot find module '#type' or its corresponding type declarations.
|
||||
tests/cases/conformance/node/index.ts(2,23): error TS2307: Cannot find module '#type' or its corresponding type declarations.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/index.ts (1 errors) ====
|
||||
// esm format file
|
||||
import * as type from "#type";
|
||||
|
||||
+2
@@ -1,8 +1,10 @@
|
||||
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.cts(2,23): error TS2307: Cannot find module '#type' or its corresponding type declarations.
|
||||
tests/cases/conformance/node/index.mts(2,23): error TS2307: Cannot find module '#type' or its corresponding type declarations.
|
||||
tests/cases/conformance/node/index.ts(2,23): error TS2307: Cannot find module '#type' or its corresponding type declarations.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/index.ts (1 errors) ====
|
||||
// esm format file
|
||||
import * as type from "#type";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
tests/cases/conformance/node/index.cts(3,22): error TS1471: Module 'package/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/index.cts(4,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
tests/cases/conformance/node/index.cts(9,23): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
@@ -6,6 +7,7 @@ tests/cases/conformance/node/node_modules/inner/index.d.ts(2,13): error TS2303:
|
||||
tests/cases/conformance/node/node_modules/inner/index.d.ts(3,22): error TS1471: Module 'inner/mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
|
||||
|
||||
!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
|
||||
==== tests/cases/conformance/node/index.ts (0 errors) ====
|
||||
// esm format file
|
||||
import * as cjs from "package/cjs";
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user