Comments (5)
As an update to the previous comment by @joyfulelement, I further extended the exact import to be used for each component and not just theme
. For instance, an application using multiple components like Box
, Menu
, MenuList
etc. needs to do exact import for each component:
import Box from '@trendmicro/react-styled-ui/Box';
import Menu from '@trendmicro/react-styled-ui/Menu';
import MenuList from '@trendmicro/react-styled-ui/Menu/MenuList';
Although, it makes code bit clumsy but it's a temporary fix for now to avoid injection of Toast element into the DOM.
from tonic-ui.
Resolved in 2a90d3f
It will be available in v0.8 or a later release.
from tonic-ui.
Try
import theme from '@trendmicro/react-styled-ui/theme';
from tonic-ui.
Try
import theme from '@trendmicro/react-styled-ui/theme';
Thanks @roth1002. Our team have tried this but didn't work. I've copied the email reply from the developer about this in case you didn't receive it:
I tried the solution that you suggested to use exact import for the theme. But still getting same error.
I tried adding styled-guide to both Cloud One Header and Landing page apps and do imports as suggested.
I also tried using the recommended setup (https://trendmicro-frontend.github.io/styled-ui/getting-started) in Landing which doesn’t require any explicit import for theme.
Even in that case, same error is thrown.
from tonic-ui.
Fixed in 0.8.0
from tonic-ui.
Related Issues (20)
- TypeError: Object.hasOwn is not a function HOT 3
- Update default warning icon for `Alert` and `Toast` components
- Change the color for informative toast
- Duplicate click events on Checkbox with `data-track` attribute in Matomo Tag Manager HOT 1
- Enhance `TableColumnResizeHandle` component to meet the visual specification
- Enhance examples by replacing code blocks with the render function
- Upgrade to Lerna 7
- Improve accessibility with targeted `:focus-visible` focus styles for non-pointer devices
- Enhancing Table examples by implementing `OverflowTooltip` for tooltip display on truncation
- Input cursor position changes to end in SearchInput when controlled usage HOT 5
- Optimize bundle size by modularizing large icon set
- Should UseToastManager methods be safe to use in useEffect? HOT 2
- Idea: Scrollbar component supports scrolling to position HOT 2
- The string is truncated, but the OverflowTooltip is not displayed
- Should open prop to ToastContainer when using ToastManager HOT 5
- Simplify release notes access with a single-page view
- Provide an example of how to rearrange table columns in a drawer
- The `Switch` component renders incorrect background color in checked and disabled states
- Documentation for v0 broken HOT 1
- @tonic-ui/react-hooks needs to declare the dependency of @tonic-ui/utils
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 tonic-ui.