Comments (4)
@ccjasonlin Please try to reproduce your problem in one of our stackblitz templates:
https://stackblitz.com/@clr-team
from clarity.
https://stackblitz.com/edit/clarity-light-theme-clr12-cds5-xgpkdz?file=src%2Fapp%2Fapp.component.ts
You can reproduce it as simple as adding the import
import { ClarityIcons, homeIcon, scriptScheduleIcon } from '@cds/core/icon';
The following error will show
Error: src/app/app.component.ts:2:34 - error TS2305: Module '"@cds/core/icon"' has no exported member 'scriptScheduleIcon'.
2 import { ClarityIcons, homeIcon, scriptScheduleIcon } from '@cds/core/icon';
=====
`import { Component } from '@angular/core';
// import { ClarityIcons, homeIcon } from '@cds/core/icon';
import { ClarityIcons, homeIcon, scriptScheduleIcon } from '@cds/core/icon';
import '@cds/core/icon/register.js';
@component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
})
export class AppComponent {
title = 'angular-cli';
constructor() {
ClarityIcons.addIcons(homeIcon);
ClarityIcons.addIcons(scriptScheduleIcon);
}
}`
from clarity.
Hi @ccjasonlin,
Seems like we didn't export it as a single icon. You can use the technologyCollectionIcons
to use that icon until we export it as one.
https://stackblitz.com/edit/clarity-light-theme-clr12-cds5-rlc6yk?file=src%2Fapp%2Fapp.component.ts Example
from clarity.
Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.
from clarity.
Related Issues (20)
- [clr-datagrid] Details pane throws change detection error HOT 2
- [clr-datagrid] focus issues when details pane is opened HOT 4
- add reset all filter option in datatable HOT 4
- The detailButton of Clarity Datagrid Row is with wrong type in the datagrid-row.d.ts HOT 3
- Source map error and webpack 5 HOT 1
- cannot work updateFilterValue with custom filters HOT 4
- Attaching change event listener on Toggle
- White space after filter is applied. HOT 4
- Documentation for read-only missing HOT 2
- Read-only attribute not working for select-input component HOT 2
- Lack of badge for namespaces icon HOT 4
- Datagrid pageSize is not saved to localestore after page refresh HOT 2
- clrDgSelected on DatagridRow behaves inconsistently HOT 5
- Publish as Ivy Distribution HOT 3
- clr-ui uncompiled sass variable HOT 1
- Website navigation child of section expands a section on first click HOT 1
- CdsDropdown throws an exception in jsdom HOT 3
- Possible missing @clr/core 4.0.16? HOT 1
- Why is this repository archived?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clarity.