Issue from creating a new custom type

I created a new custom type in my dialect but hit the following error when creating an instance of my type. I’d appreciate any pointer on what I’m probably missing that leads to this error. Thanks.

“LLVM ERROR: can’t create type ‘myType’ because storage uniquer isn’t initialized: the dialect was likely not loaded.”

Did you call registerTypes in the dialect constructor? Is the dialect loaded in the context?

Thanks for your response, Medhi! It turned out the dialect was not loaded in the context.