mkloubert / nativescript-toolbox

A NativeScript module that is a composition of useful tools and helpers.
MIT License
55 stars 14 forks source link

Can't resolve '../moment' in multiple locale files at runtime. #6

Closed KirilOkun closed 5 years ago

KirilOkun commented 5 years ago

All of a sudden started getting the following error for each file in nativescript_toolbox/moment/locale:

ERROR in ../node_modules/nativescript-toolbox/moment/locale/nn.js
Module not found: Error: Can't resolve '../moment' in '/home/bear/dev/app90dr/node_modules/nativescript-toolbox/moment/locale'
 @ ../node_modules/nativescript-toolbox/moment/locale/nn.js 7:50-70
 @ ../node_modules/nativescript-toolbox/moment/locale sync ^\.\/.*$
 @ ../node_modules/nativescript-toolbox/moment/index.js
 @ ./pages/person/person-page.ts
 @ . sync (root|page)\.(xml|css|js|ts|scss)$
 @ ./app.ts

It looks like it's caused by factory(require('../moment')) on line 7. It might need to be '../../moment'. Any ideas?

KirilOkun commented 5 years ago

Nevermind. Seems like this project is abandoned. Just imported moment library directly and it works fine. Closing.