Switch from rollup to vite, from commonjs to ecmascript modules #3136
Annotations
10 errors
Run types check:
tests/env/typescript-browser/src/index.ts#L1
Could not find a declaration file for module '../../../../'. '/home/runner/work/meilisearch-js/meilisearch-js/dist/bundles/index.cjs' implicitly has an 'any' type.
|
Run types check:
tests/env/typescript-browser/src/index.ts#L2
ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled.
|
Run types check:
tests/env/typescript-browser/src/index.ts#L2
'IndexObject' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.
|
Run types check:
tests/env/typescript-browser/src/index.ts#L2
The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("../../../../src")' call instead.
|
Run types check:
tests/env/typescript-browser/src/index.ts#L3
ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled.
|
Run types check:
tests/env/typescript-browser/src/index.ts#L3
The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("../../../../src/token")' call instead.
|
Run types check:
tests/env/typescript-node/src/index.ts#L2
ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled.
|
Run types check:
tests/env/typescript-node/src/index.ts#L3
ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled.
|
Run types check:
tests/env/typescript-node/src/index.ts#L3
'IndexObject' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.
|
Run types check:
tests/env/typescript-node/src/index.ts#L4
ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled.
|
Loading