🦈Spizn[̲̅α]𝚔͢🐺 ︻╦̵̵̿╤──
Solid-Icons with Webpack and Module Federation?
I've been trying to get Solid-Icons to work with the create-mf-app function (Jack Herrington and Module Federations maintainers), but it won't transpile. Anyone have suggestions to make it work?
As a work-around, I'm directly using the SVG code in a local file to create the icons I want from the library where I want them. It's a good learning for adding keys for dynamic styling, but I'd like to use the library the way it was meant to be used.
1 replies
Import React component with Module Federation
I have a simple use case which belies the greater effort: importing a counter with a starting value prop
I have a SO post: https://stackoverflow.com/questions/77881409/how-can-i-get-solid-to-process-a-react-component-with-props-using-module-federat
It also links to the repo, but here it is anyway: https://github.com/CSworenI/react-to-solid
3 replies
Link to imported component w/ parameter with Module Federation
I have been following a tutorial from about 2 years ago, aimed at React, with my newfound love of Solid (I have replaced the React icons in Material UI Theme extension for VS Code): https://www.youtube.com/watch?v=lKKsjpH09dU
Jack's been a good sport about the issues I've had up to this point, but I don't want to keep bothering him.
In any case, I'm attempting to link to the product detail page from the HomeComponent in this way:
There is no error returned, but the route returned winds up being
#
, as if I haven't passed a parameter. What am I doing wrong?
I've imported the component as expected in the webpack.config.js:
2 replies