PeterStaev / nativescript-photo-editor

🎨 Easily edit an image in your NativeScript app (crop, draw, etc)
Apache License 2.0
47 stars 15 forks source link

nativescript 8 & angular 14 , build failed. #32

Open chenliyang1024 opened 1 year ago

chenliyang1024 commented 1 year ago

I'm using NS8, and Angular 14, trying to add this plug in, but keep having this error ERROR in ./node_modules/nativescript-photo-editor/photo-editor.ios.js 15:21-44 Module not found: Error: Can't resolve 'image-source' in '/Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/nativescript-photo-editor' resolve 'image-source' in '/Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/nativescript-photo-editor' Parsed request is a module using description file: /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/nativescript-photo-editor/package.json (relative path: .) resolve as module looking for modules in /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules single file module using description file: /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/package.json (relative path: ./node_modules/image-source) no extension /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source doesn't exist .ios.ts /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.ios.ts doesn't exist .ts /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.ts doesn't exist .ios.js /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.ios.js doesn't exist .js /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.js doesn't exist .ios.mjs /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.ios.mjs doesn't exist .mjs /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.mjs doesn't exist .ios.css /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.ios.css doesn't exist .css /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.css doesn't exist .ios.scss /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.ios.scss doesn't exist .scss /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.scss doesn't exist .ios.json /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.ios.json doesn't exist .json /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.json doesn't exist /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source doesn't exist /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/nativescript-photo-editor/node_modules doesn't exist or is not a directory /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/node_modules doesn't exist or is not a directory looking for modules in /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules single file module using description file: /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/package.json (relative path: ./node_modules/image-source) no extension /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source doesn't exist .ios.ts /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.ios.ts doesn't exist .ts /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.ts doesn't exist .ios.js /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.ios.js doesn't exist .js /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.js doesn't exist .ios.mjs /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.ios.mjs doesn't exist .mjs /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.mjs doesn't exist .ios.css /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.ios.css doesn't exist .css /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.css doesn't exist .ios.scss /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.ios.scss doesn't exist .scss /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.scss doesn't exist .ios.json /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.ios.json doesn't exist .json /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source.json doesn't exist /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/Portal_Mobile_Nativescript_Angular/node_modules/image-source doesn't exist /Users/dannychen/Documents/HW_Development/HW_Central/Portal_Mobile/node_modules doesn't exist or is not a directory /Users/dannychen/Documents/HW_Development/HW_Central/node_modules doesn't exist or is not a directory /Users/dannychen/Documents/HW_Development/node_modules doesn't exist or is not a directory /Users/dannychen/Documents/node_modules doesn't exist or is not a directory /Users/dannychen/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/constructionModule/constructionPMBlock/constructionTaskDetailComponent/ConstructionTaskDetailCommentsComponent/construction.component.ts 6:0-56 163:40-51 @ ./src/app/constructionModule/constructionPMBlock/constructionTaskDetailComponent/construction.component.ts 9:0-87 81:103-145 @ ./src/app/constructionModule/constructionPMBlock/constructionPM-routing.module.ts 3:0-107 9:37-68 @ ./src/app/constructionModule/constructionPMBlock/constructionPM.module.ts 2:0-68 8:100-117 @ ./src/app/constructionModule/construction-routing.module.ts 8:38-91 @ ./src/app/constructionModule/construction.module.ts 2:0-66 9:98-115 @ ./src/app/app-routing.module.ts 13:28-78 @ ./src/app/app.module.ts 2:0-56 11:8-24 @ ./src/main.ts 5:0-45 19:69-78

so i manually change the import image image image

Now, it's force quit while I const photoEditor = new PhotoEditor();

any help? or not sure if I'm able to use this plug in on this enviroment

PeterStaev commented 1 year ago

Per the readme:

This repo only supports NativeScript pre-6.0. The latest version of the plugin supporting NS 6+ is availble as part of ProPlugins.

chenliyang1024 commented 1 year ago

`npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@proplugins%2fnativescript-photo-editor - Not found npm ERR! 404 npm ERR! 404 '@proplugins/nativescript-photo-editor@*' is not in this registry. npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:`

I got this error after following the steps.

PeterStaev commented 1 year ago

You ned to subscribe to ProPlugins first, then use npm login --registry=https://npm.proplugins.org --scope=@proplugins and provide your subscription user/password.