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

[Feature Request] TypeScript Cannot find module './affix' or its corresponding type declarations. Cannot find module './slider' or its corresponding type declarations. Cannot find module 'element-plus/es/components/config-provider/config-provider' or its corresponding type declarations. Cannot find module '../utils/config' or its corresponding type declarations. #4291

Closed
ClownLee opened this issue Nov 8, 2021 · 5 comments
Labels
duplicate This issue or pull request already exists

Comments

@ClownLee
Copy link

ClownLee commented Nov 8, 2021

Existing Component

No

Component Name

affix slider

Description

Cannot find module './affix' or its corresponding type declarations. Cannot find module './slider' or its corresponding type declarations. Cannot find module 'element-plus/es/components/config-provider/config-provider' or its corresponding type declarations. Cannot find module '../utils/config' or its corresponding type declarations.

@ClownLee ClownLee changed the title [Feature Request] Cannot find module './affix' or its corresponding type declarations. Cannot find module './slider' or its corresponding type declarations. Cannot find module 'element-plus/es/components/config-provider/config-provider' or its corresponding type declarations. Cannot find module '../utils/config' or its corresponding type declarations. [Feature Request] TypeScript Cannot find module './affix' or its corresponding type declarations. Cannot find module './slider' or its corresponding type declarations. Cannot find module 'element-plus/es/components/config-provider/config-provider' or its corresponding type declarations. Cannot find module '../utils/config' or its corresponding type declarations. Nov 8, 2021
@djrenko96
Copy link

I have same problem

package.json:
{ "name": "client", "version": "0.0.0", "scripts": { "build": "vue-tsc --noEmit && vite build", "serve": "vite preview" }, "dependencies": { "element-plus": "^1.2.0-beta.2", "eslint": "^8.2.0", "unplugin-vue-components": "^0.17.2", "vue": "^3.2.16", "vue-router": "^4.0.12" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^4.25.0", "@typescript-eslint/parser": "^4.25.0", "@vue/compiler-sfc": "^3.0.5", "@vue/eslint-config-prettier": "^6.0.0", "@vue/eslint-config-typescript": "^7.0.0", "eslint": "^8.2.0", "eslint-plugin-prettier": "^3.4.0", "eslint-plugin-vue": "^7.10.0", "prettier": "^2.3.0", "@vitejs/plugin-vue": "^1.9.3", "typescript": "^4.4.3", "vite": "^2.6.4", "vue-tsc": "^0.3.0" } }

When i start npm run build :
image

@zjjaxx
Copy link

zjjaxx commented Nov 9, 2021

me too.....

@msidolphin msidolphin added the need reproduction Need more information, we cannot reproduce your problem label Nov 10, 2021
@element-bot
Copy link
Member

Hello @ClownLee. Please provide an online reproduction demo by clicking this link or a minimal GitHub repository.

你好 @ClownLee, 请提供一个可复现问题的链接以便于我们帮你排查问题。可以通过点击 此处 创建或者提供一个最小化的 GitHub 仓库。

@sxzz sxzz removed the need reproduction Need more information, we cannot reproduce your problem label Nov 10, 2021
@sxzz
Copy link
Collaborator

sxzz commented Nov 10, 2021

Dulicate of #4313

@sxzz sxzz closed this as completed Nov 10, 2021
@sxzz sxzz added the duplicate This issue or pull request already exists label Nov 10, 2021
@sxzz
Copy link
Collaborator

sxzz commented Nov 10, 2021

Please refer to #4213 (comment)

@github-actions github-actions bot locked and limited conversation to collaborators Dec 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

6 participants