Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.ice临时目录的文件无法通过tsChecker #4209

Closed
caoyi5225 opened this issue Apr 8, 2021 · 4 comments
Closed

.ice临时目录的文件无法通过tsChecker #4209

caoyi5225 opened this issue Apr 8, 2021 · 4 comments
Assignees

Comments

@caoyi5225
Copy link

What is the current behavior? 发生了什么?

.ice临时目录的文件无法通过tsChecker

tsconfig.json

{
  "compileOnSave": false,
  "buildOnSave": false,
  "compilerOptions": {
    "baseUrl": ".",
    "outDir": "build",
    "module": "esnext",
    "target": "es6",
    "jsx": "react-jsx",
    "moduleResolution": "node",
    "allowSyntheticDefaultImports": true,
    "lib": ["es6", "dom"],
    "sourceMap": true,
    "allowJs": true,
    "rootDir": "./",
    "forceConsistentCasingInFileNames": true,
    "noImplicitReturns": true,
    "noImplicitThis": true,
    "noImplicitAny": false,
    "importHelpers": true,
    "strictNullChecks": true,
    "strictFunctionTypes": true,
    "strictPropertyInitialization": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "skipLibCheck": true,
    "types": ["node"],
    "paths": {
      "@/*": ["./src/*"],
      "ice": [".ice/index.ts"]
    }
  },
  "include": ["src", ".ice"],
  "exclude": ["node_modules", "build", "public"]
}

build.json

{
  "tsChecker": true,
  "hash": true,
  "plugins": [
    [
      "build-plugin-fusion",
      {
        "themePackage": "@alifd/theme-16139"
      }
    ],
    [
      "build-plugin-moment-locales",
      {
        "locales": [
          "zh-cn"
        ]
      }
    ]
  ]
}

image

What is the expected behavior? 期望的结果是什么?

.ice临时目录的文件通过tsChecker

Any additional comments? 相关环境信息?

  • ice.js Version:1.17.2
  • build.json Configuration:见上边
  • Node Version: v14.15.0
  • Platform: macos
@caoyi5225
Copy link
Author

caoyi5225 commented Apr 8, 2021

update:第一个报错可以通过为src/config.ts添加default: {} 配置解决。

第二个报错是由于开启了"noUnusedParameters“这个规则,麻烦看下官方是否可以修复~

@ClarkXia
Copy link
Collaborator

这两个类型问题 我们修复下

@luhc228
Copy link
Collaborator

luhc228 commented Apr 15, 2021

发布 ice.js@1.17.4 已解决

@luhc228 luhc228 closed this as completed Apr 15, 2021
@caoyi5225
Copy link
Author

caoyi5225 commented Apr 16, 2021

感谢 !🎉🎉🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants