DEV Community

Discussion on: Angular 10 + Storybook + npm package = NG Design System ๐Ÿ’œ - Step-by-Step

Collapse
 
activenode profile image
David Lorenz

How does your directory structure look like?

Where is your main repository and where is the library repository? Do you get any error message?

Collapse
 
babatos profile image
babatos

can I put my code to git for you review code?

Thread Thread
 
activenode profile image
David Lorenz

Yes

Thread Thread
 
babatos profile image
babatos

thanks you very much. This is my github

github.com/tiendatlgbg/LibraryAngu...

Collapse
 
babatos profile image
babatos

I get the following error at runtime:

core.mjs:6484 ERROR TypeError: Cannot read properties of null (reading 'bindingStartIndex')
at Module.ษตษตelementStart (:51648/vendor.js:34341)
at ButtonComponent_Template (:51648/main.js:280)
at executeTemplate (:51648/vendor.js:69548)
at renderView (:51648/vendor.js:69277)
at renderComponent$1 (:51648/vendor.js:70812)
at renderChildComponents (:51648/vendor.js:69112)
at renderView (:51648/vendor.js:69311)
at renderComponent$1 (:51648/vendor.js:70812)
at renderChildComponents (:51648/vendor.js:69112)
at renderView (:51648/vendor.js:69311)

I do not see any errors while compiling

Collapse
 
babatos profile image
babatos • Edited

I think I fixed the error by adding ""preserveSymlinks": true" to "option:{ }" in Myapp/Angular.json file. It worked. But I don't understand why It work. Could you explain me, please?

I'm using :
Angular CLI: 13.0.3
Node: 16.13.1
Package Manager: npm 8.1.2
OS: win32 x64