React Component Library: Unexpected identifier 'Template'. Expected '}' to end an object literal

Viewed 116

I am building my first react component library. For this I used this template. This is the current state of my library.

I can run the story book with yarn storybook and everything works as expected.

Also I can build and publish to the npm registry.

Now, when I integrate this react component library in a new react app, I get the following error:

enter image description here

Since my experience is rather limited with rollup, webpack, etc, it is hard to pinpoint where the error is.

The error most likely is in the bundeling phase since it works perfectly fine with storybook, right? any ideas what might cause the error?

1 Answers

The problem was that the library uuid was not listed as a dependency.

Related