Replies: 3 comments 5 replies
-
Ok, so this seems to be a bit odd, but as soon as I did an explicit import it worked. Ok, this didn't fix it, and I'm still trying to figure out what I've done wrong |
Beta Was this translation helpful? Give feedback.
-
My hunch is it is related to some mismatched dependency versions. Can you share the deps/devdeps for your project? Also @scottn12 wrote the tutorial originally; maybe he knows something about this. |
Beta Was this translation helpful? Give feedback.
-
Hey Tyler, thanks for the response! Here's my package.json for the project. I was thinking it might be a version thing, glad to see it wasn't something obvious I've missed.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Ok, so I wanted to mess around with the fluid relay, so I downloaded the angular tutorial repo and did the steps as outlined on the page, but it's not working, even though I have the exact same code as the tutorial suggests.
`Argument of type 'import("C:/Testprojecten/fluid-angular-tutorial/node_modules/fluid-framework/node_modules/@fluidframework/fluid-static/dist/types").ContainerSchema' is not assignable to parameter of type 'import("C:/Testprojecten/fluid-angular-tutorial/node_modules/@fluidframework/fluid-static/dist/types").ContainerSchema'.
Types of property 'initialObjects' are incompatible.
This is the error that is shown around the containerSchema variable in app.component
if (!containerId) { ({ container } = await client.createContainer(containerSchema)); const id = await container.attach(); location.hash = id; }
For good measure, the declaration of containerSchema, which has no errors:
const containerSchema: ContainerSchema = { initialObjects: { sharedTimestamp: SharedMap } };
Why am I getting this error? The object seems to conform with the ContainerSchema type, right? I've checked, and it is literally a copy of the code on the github.
Thanks for reading!
Beta Was this translation helpful? Give feedback.
All reactions