JohannesHoppe / angular-date-value-accessor

Home of the Angular DateValueAccessor for <input type="date">
http://johanneshoppe.github.io/angular-date-value-accessor/
MIT License
78 stars 19 forks source link

Error: Module not found: Error: Package path ./lib/local-iso-date-value-accessor is not exported from package when running `ng extract-i18n` #36

Closed d-koppenhagen closed 2 years ago

d-koppenhagen commented 2 years ago

When executing ng extract-i18n, an error is shown:

Error: Module not found: Error: Package path ./lib/local-iso-date-value-accessor is not exported from package

The message extraction fails in fact.

Full Error Message

$ ng extract-i18n
✔ Browser application bundle generation complete.

Initial Chunk Files              | Names              |  Raw Size
main.js                          | main               |   1.97 MB | 
polyfills.js                     | polyfills          | 980.65 kB | 
runtime.js                       | runtime            |  12.15 kB | 

                                 | Initial Total      |   2.94 MB

Lazy Chunk Files                 | Names              |  Raw Size
src_app_admin_admin_module_ts.js | admin-admin-module | 339.06 kB | 
src_app_books_books_module_ts.js | books-books-module |  32.91 kB | 

Build at: 2022-08-05T19:51:26.193Z - Hash: 03fcdd87f271a332 - Time: 5846ms

./src/app/admin/book-form/book-form.component.ts:8:0-84 - Error: Module not found: Error: Package path ./lib/local-iso-date-value-accessor is not exported from package /Users/dannykoppenhagen/dev/buch/code/book-monkey5/96-i18n/node_modules/angular-date-value-accessor (see exports field in /Users/dannykoppenhagen/dev/buch/code/book-monkey5/96-i18n/node_modules/angular-date-value-accessor/package.json)

~/dev/buch/code/book-monkey5/96-i18n (i18n ✘)✹ ᐅ 
fmalcher commented 2 years ago

Have you tried turning it on and off again? 😇

d-koppenhagen commented 2 years ago

yes. now. :D

Deleting the node_modules and running npm i again solved this issue.

JohannesHoppe commented 2 years ago

🤪