Select to view content in your preferred language

Developer Edition 1.15: Issue with Calcite path

241
2
Jump to solution
07-25-2024 12:32 AM
ChristineWiltawsky1
Occasional Contributor

In Visual Studio Code the import for calcite-components cannot be found.

ChristineWiltawsky1_1-1721892570025.png

You can see this if you open the GitHub Sample use-calcite-components in your IDE.

0 Kudos
1 Solution

Accepted Solutions
ChristineWiltawsky1
Occasional Contributor

The path for calcite components in the client folder changed obviously from "jimu-ui/calcite-components/index" to "jimu-ui/calcite-components". And the tsconfig file was not updated. Changing the path in tsconfig.json in line 27 will solve the problem.

"calcite-components": ["jimu-ui/calcite-components"],
ChristineWiltawsky1_0-1721893693567.png

 

View solution in original post

2 Replies
ChristineWiltawsky1
Occasional Contributor

The path for calcite components in the client folder changed obviously from "jimu-ui/calcite-components/index" to "jimu-ui/calcite-components". And the tsconfig file was not updated. Changing the path in tsconfig.json in line 27 will solve the problem.

"calcite-components": ["jimu-ui/calcite-components"],
ChristineWiltawsky1_0-1721893693567.png

 

TimWestern
Frequent Contributor

Also last I checked, they had something in web pack that maps all the calcite-components from 'calcite-components' when you build.

0 Kudos