Cannot Find Any Tns-core-module/ui Modules Nativescript
I am writing a {N}-Application and need to import Images from the tns-core-modules/ui/image-module. Sadly he says that he cannot find that target in the tns-core-module. My code: i
Solution 1:
Are you sure that the path you provided is valid? It seems like you want to reference it relatively, but you might have to go up a few levels if you are. For instance:
import * asImageModulefrom"../tns-core-module/ui/image"; //This will go up two levels.
Alternatively, you may be able to import the module using a path declared in your tsconfig.json file. Something along the lines of
"paths":{"*":["./node_modules/tns-core-modules/*"]}
If that's the case, you can simply import by using
imprt * as ImageModule from"ui/images";
Post a Comment for "Cannot Find Any Tns-core-module/ui Modules Nativescript"