Comments (5)
no idea. you need to post the simplest possible case showing the issue if the bug is in the lib.
from gridstack.js.
@adumesny simplest possible case can be found here:
https://github.com/ringo-anva/gridstack
I created one host and two remotes.
When you switch between remote 1 and remote 2 you will get the 'warning' (which causes some issue for us):
NG0912: Component ID generation collision detected. Components 'GridstackItemComponent' and 'GridstackItemComponent' with selector 'gridstack-item' generated the same component ID. To fix this, you can change the selector of one of those components or add an extra host attribute to force a different ID. Find more at https://angular.io/errors/NG0912
Cheers,
Ringo.
from gridstack.js.
Steps to Reproduce:
checkout main at repo https://github.com/ringo-anva/gridstack
npm install
npm run start
open devtools console
click on menu option 'remote 1'
click on menu optioni 'remote 2'
from gridstack.js.
Hi @ringo-anva. I saw that you marked as solved your problem in this issue >>> #20430.
I checked your repo but you haven't posted yet the changes you made to make it work. Could you share your solution to see what approach did you follow? I need to see what should I change in my project configuration in order to get rid of this problem.
Thanks in advance.
from gridstack.js.
At file module-federation.config.ts in each remote and host it should look like:
const config: ModuleFederationConfig = {
name: 'apps/gridstackmf/remote1',
exposes: {
'./Routes': 'apps/gridstackmf/remote1/src/app/remote-entry/entry.routes.ts',
},
additionalShared: [
{
libraryName: 'gridstack/dist/angular',
sharedConfig: { singleton: true },
},
],
};
export default config;
So addding the additionalShared solve it, good luck.
from gridstack.js.
Related Issues (20)
- Change disableResize and disableDrag on Angular on user interaction HOT 4
- [Bug] Can't use disableDrag, disableResize props in Angular HOT 2
- `dist` folder is missing from both repo and releases HOT 1
- IOS auto scrolling doesn't work HOT 2
- [BUG] Dragging a widget into the grid doesn't honour expected aspect ratio HOT 2
- Any way to flip the direction of the board? HOT 1
- [Bug] After load(), in some cases the Y position is determined incorrectly & sizes are not restored. HOT 11
- Gridstack in WordPress editor (Gutenberg) mobile preview iframe not working. HOT 4
- Change event not firing on nested grids (resize, move...) HOT 1
- Angular wrapper doesnt have fitToContent option HOT 2
- Demo for lit is not working (https://gridstackjs.com/demo/web-comp.html)
- Responsive grids don't render items with minW correctly on resize HOT 3
- Custom drag element of type button doesn't work HOT 1
- Responsive grid coordinates system is inconsistent HOT 3
- Scale & Different Resolution Question HOT 5
- Unable to set max grid height HOT 1
- How to use Angular library (like PrimeNg) components in gridstack
- GridStack's draggable option doesn't behave as expected when using Vue Rendering Grid Item Content HOT 4
- Updating DOM stack elements within the captured change event are not reflected. HOT 2
- The Change event is not always fired when items have changed after dragging HOT 2
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 gridstack.js.