fix: build dts error #366
Annotations
6 errors and 1 warning
test/config.test.ts > config > load ts config:
packages/weapp-tailwindcss/dist/defaults.js#L6
SyntaxError: TypeScript Error in /home/runner/work/weapp-tailwindcss/weapp-tailwindcss/plugins/cli/test/fixtures/configs/ts/weapp-tw.config.ts:
Cannot use import statement outside a module
❯ Object.<anonymous> ../../packages/weapp-tailwindcss/dist/defaults.js:6:14
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { filepath: '/home/runner/work/weapp-tailwindcss/weapp-tailwindcss/plugins/cli/test/fixtures/configs/ts/weapp-tw.config.ts' }
Module /home/runner/work/weapp-tailwindcss/weapp-tailwindcss/packages/shared/src/index.ts:1 seems to be an ES Module but shipped in a CommonJS package. To fix this issue, change the file extension to .mjs or add "type": "module" in your package.json.
|
test/config.test.ts > config > initConfig > init ts config:
packages/weapp-tailwindcss/dist/defaults.js#L6
SyntaxError: TypeScript Error in /home/runner/work/weapp-tailwindcss/weapp-tailwindcss/plugins/cli/test/fixtures/configs-output/ts/weapp-tw.config.ts:
Cannot use import statement outside a module
❯ Object.<anonymous> ../../packages/weapp-tailwindcss/dist/defaults.js:6:14
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { filepath: '/home/runner/work/weapp-tailwindcss/weapp-tailwindcss/plugins/cli/test/fixtures/configs-output/ts/weapp-tw.config.ts' }
Module /home/runner/work/weapp-tailwindcss/weapp-tailwindcss/packages/shared/src/index.ts:1 seems to be an ES Module but shipped in a CommonJS package. To fix this issue, change the file extension to .mjs or add "type": "module" in your package.json.
|
test/config.test.ts > config > initConfig > init ts config with tsconfig:
packages/weapp-tailwindcss/dist/defaults.js#L6
SyntaxError: TypeScript Error in /home/runner/work/weapp-tailwindcss/weapp-tailwindcss/plugins/cli/test/fixtures/configs-output/ts-tsconfig/weapp-tw.config.ts:
Cannot use import statement outside a module
❯ Object.<anonymous> ../../packages/weapp-tailwindcss/dist/defaults.js:6:14
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { filepath: '/home/runner/work/weapp-tailwindcss/weapp-tailwindcss/plugins/cli/test/fixtures/configs-output/ts-tsconfig/weapp-tw.config.ts' }
Module /home/runner/work/weapp-tailwindcss/weapp-tailwindcss/packages/shared/src/index.ts:1 seems to be an ES Module but shipped in a CommonJS package. To fix this issue, change the file extension to .mjs or add "type": "module" in your package.json.
|
test/defaults.test.ts > defaults function test group > should export:
packages/weapp-tailwindcss/dist/defaults.js#L6
SyntaxError: Cannot use import statement outside a module
❯ Object.<anonymous> dist/defaults.js:6:14
Module /home/runner/work/weapp-tailwindcss/weapp-tailwindcss/packages/shared/src/index.ts:1 seems to be an ES Module but shipped in a CommonJS package. To fix this issue, change the file extension to .mjs or add "type": "module" in your package.json.
|
Release
Error: The process '/home/runner/setup-pnpm/node_modules/.bin/pnpm' failed with exit code 1
|
Release
The process '/home/runner/setup-pnpm/node_modules/.bin/pnpm' failed with exit code 1
|
Release
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|