-
Notifications
You must be signed in to change notification settings - Fork 70
Closed
Labels
kind: supportAsking for support with something or a specific use caseAsking for support with something or a specific use caseproblem: needs more infoThis issue needs more information in order to handle itThis issue needs more information in order to handle itproblem: removed issue templateOP removed the issue template without good causeOP removed the issue template without good causeproblem: staleIssue has not been responded to in some timeIssue has not been responded to in some timesolution: can't reproAn attempt to reproduce has been tried and failedAn attempt to reproduce has been tried and failedsolution: outdatedThis is not up-to-date with the current versionThis is not up-to-date with the current versionsolution: tsc behaviorThis is tsc's behavior as well, so this is not a bug with this pluginThis is tsc's behavior as well, so this is not a bug with this plugintopic: TS versionRelated to a change in a TS versionRelated to a change in a TS version
Description
What happens and why it is wrong
Hi, i put // @ts-nocheck
on the top of my tsx file but still got semantic error TS2554
when run rollup -c
Environment
Versions
- typescript: 3.8.3
- rollup: 2.3.2
- rollup-plugin-typescript2: 0.27.0
rollup.config.js
import typescript from 'rollup-plugin-typescript2';
import pkg from './package.json';
export default [
{
input: 'src/index.tsx',
output: [
{
file: 'dist/index.js',
format: 'esm',
banner: '/* eslint-disable */',
},
{ file: pkg.main, format: 'cjs' },
{ file: pkg.module, format: 'esm' },
],
plugins: [
typescript(),
],
onwarn: function(warning) {
// Skip certain warnings
if ( warning.code === 'THIS_IS_UNDEFINED' ) { return; }
console.warn( warning.message );
},
external: Object.keys(pkg.peerDependencies || {}),
},
];
tsconfig.json
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"importHelpers": true,
"jsx": "react",
"esModuleInterop": true,
"sourceMap": true,
"baseUrl": ".",
"strict": false,
"paths": {
"@/*": ["src/*"]
},
"declaration": true,
"outDir": "./dist",
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"strictNullChecks": false,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"noEmitOnError": false
}
}
package.json
{
"name": "test",
"version": "0.1",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"scripts": {
"build": "rollup -c"
},
"dependencies": {
"antd": "3.23.6",
"father": "^2.29.2",
"hammerjs": "^2.0.8",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-live": "^2.2.2",
"react-perfect-scrollbar": "^1.5.3",
"react-signature-canvas": "^1.0.3",
"react-simple-keyboard": "^2.0.5",
"react-slick": "^0.25.2",
"react-sticky-box": "^0.9.2",
"react-syntax-highlighter": "^11.0.2",
"react-window-size": "^1.2.2",
"recharts": "^2.0.0-beta.1",
"rxjs": "^6.5.3",
"slick-carousel": "^1.8.1",
"typescript": "3.6.4",
"umi-plugin-locale": "^2.11.2"
},
"devDependencies": {
"@types/hammerjs": "^2.0.36",
"@types/jest": "^23.3.12",
"@types/react": "^16.7.18",
"@types/react-dom": "^16.0.11",
"@types/react-test-renderer": "^16.0.3",
"babel-eslint": "^9.0.0",
"eslint": "^5.4.0",
"eslint-config-umi": "^1.4.0",
"eslint-plugin-flowtype": "^2.50.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-react": "^7.11.1",
"husky": "^0.14.3",
"lint-staged": "^7.2.2",
"react-test-renderer": "^16.7.0",
"rollup": "^2.3.2",
"rollup-plugin-delete": "^1.2.0",
"rollup-plugin-typescript2": "^0.27.0",
"tslint": "^5.12.0",
"tslint-eslint-rules": "^5.4.0",
"tslint-react": "^3.6.0",
"umi": "^2.9.0",
"umi-plugin-react": "^1.8.0",
"umi-types": "^0.3.0"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"sideEffects": [
"dist/*",
"*.less"
],
"typings": "dist/src/index.d.ts"
}
plugin output with verbosity 3
[!] (plugin rpt2) Error: /index.tsx(100,11): semantic error TS2554: Expected 1 arguments, but got 0.
Metadata
Metadata
Assignees
Labels
kind: supportAsking for support with something or a specific use caseAsking for support with something or a specific use caseproblem: needs more infoThis issue needs more information in order to handle itThis issue needs more information in order to handle itproblem: removed issue templateOP removed the issue template without good causeOP removed the issue template without good causeproblem: staleIssue has not been responded to in some timeIssue has not been responded to in some timesolution: can't reproAn attempt to reproduce has been tried and failedAn attempt to reproduce has been tried and failedsolution: outdatedThis is not up-to-date with the current versionThis is not up-to-date with the current versionsolution: tsc behaviorThis is tsc's behavior as well, so this is not a bug with this pluginThis is tsc's behavior as well, so this is not a bug with this plugintopic: TS versionRelated to a change in a TS versionRelated to a change in a TS version