ui-pager
ui-pager copied to clipboard
BREAKING CHANGE - Can't resolve some modules in 13.0.34
trafficstars
After rebuilding node_modules our app couldn't be build anymore. While building you get the following log output errors:
Module not found: Error: Can't resolve '@nativescript/core/data/observable-array' in '/Users/Shared/Entwicklung/xxx/nativescript-xxx-app/node_modules/@nativescript-community/ui-pager/angular/fesm2015'
Did you mean 'index.js'?
BREAKING CHANGE: The request '@nativescript/core/data/observable-array' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
resolve '@nativescript/core/data/observable-array' in '/Users/Shared/Entwicklung/xxx/nativescript-xxx-app/node_modules/@nativescript-community/ui-pager/angular/fesm2015'
Parsed request is a module
using description file: /Users/Shared/Entwicklung/xxx/nativescript-xxx-app/node_modules/@nativescript-community/ui-pager/angular/package.json (relative path: ./fesm2015)
resolve as module
looking for modules in /Users/Shared/Entwicklung/xxx/nativescript-xxx-app/node_modules
existing directory /Users/Shared/Entwicklung/xxx/nativescript-xxx-app/node_modules/@nativescript/core
using description file: /Users/Shared/Entwicklung/xxx/nativescript-xxx-app/node_modules/@nativescript/core/package.json (relative path: .)
using description file: /Users/Shared/Entwicklung/xxx/nativescript-xxx-app/node_modules/@nativescript/core/package.json (relative path: ./data/observable-array)
/Users/Shared/Entwicklung/xxx/nativescript-xxx-app/node_modules/@nativescript/core/data/observable-array is not a file
/Users/Shared/Entwicklung/xxx/nativescript-xxx-app/node_modules/@nativescript-community/ui-pager/angular/fesm2015/node_modules doesn't exist or is not a directory
/Users/Shared/Entwicklung/xxx/nativescript-xxx-app/node_modules/@nativescript-community/ui-pager/angular/node_modules doesn't exist or is not a directory
/Users/Shared/Entwicklung/xxx/nativescript-xxx-app/node_modules/@nativescript-community/ui-pager/node_modules doesn't exist or is not a directory
/Users/Shared/Entwicklung/xxx/nativescript-xxx-app/node_modules/@nativescript-community/node_modules doesn't exist or is not a directory
/Users/Shared/Entwicklung/xxx/nativescript-xxx-app/node_modules/node_modules doesn't exist or is not a directory
looking for modules in /Users/Shared/Entwicklung/xxx/nativescript-xxx-app/node_modules
existing directory /Users/Shared/Entwicklung/xxx/nativescript-xxx-app/node_modules/@nativescript/core
using description file: /Users/Shared/Entwicklung/xxx/nativescript-xxx-app/node_modules/@nativescript/core/package.json (relative path: .)
using description file: /Users/Shared/Entwicklung/xxx/nativescript-xxx-app/node_modules/@nativescript/core/package.json (relative path: ./data/observable-array)
/Users/Shared/Entwicklung/xxx/nativescript-xxx-app/node_modules/@nativescript/core/data/observable-array is not a file
/Users/Shared/Entwicklung/xxx/node_modules doesn't exist or is not a directory
/Users/Shared/Entwicklung/node_modules doesn't exist or is not a directory
/Users/Shared/node_modules doesn't exist or is not a directory
/Users/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory
@ ./src/app/dashboard/dashboard.module.ts 4:0-71 10:134-145
@ ./src/app/app-routing.module.ts 41:28-70
@ ./src/app/app.module.ts 26:0-56 189:12-28
@ ./src/main.ts 6:0-45 10:69-78
The same error appears also for the packages:
- @nativescript/core/profiling
Because we had
"@nativescript-community/ui-pager": "^13.0.33"
the breaking changes were updated automatically.
We fixed the issue with specifing the previous version with:
"@nativescript-community/ui-pager": "13.0.33"
Let me know, if you need any more information.
+1 Ran into the same issue today. Using specific versions (13.0.33) does help. Thank you @ishiharas!