嘿伙计们,这个问题还没有通过类似的解决,
\n\n尝试了他们的解决方案,但对我不起作用。
\n现在我的情况\n tsconfig.js
\n{\n "compilerOptions": {\n "noUnusedLocals": false,\n "noUnusedParameters": false,\n "noImplicitReturns": false,\n "noImplicitAny": false,\n "skipLibCheck": false,\n "strict": false,\n "strictNullChecks": false,\n "allowSyntheticDefaultImports": true,\n "esModuleInterop": true,\n "resolveJsonModule": true,\n "experimentalDecorators": true,\n "emitDecoratorMetadata": true,\n "declaration": true,\n "jsx": "react",\n "module": "commonjs",\n "moduleResolution": "node",\n "target": "es6",\n "outDir": "./dist",\n "lib": [\n "dom",\n "esnext"\n ]\n },\n "esModuleInterop": true,\n "include": [\n "src/components/canvas/index.tsx",\n "src/components/canvas/Canvas.tsx",\n "src/components/canvas/global.d.ts"\n ],\n "exclude": [\n "node_modules",\n "dist",\n "lib"\n ]\n}\n\nRun Code Online (Sandbox Code Playgroud)\ngulpfile.js
\n\nconst gulp …Run Code Online (Sandbox Code Playgroud)