Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Unable to build module #39

Closed
VladimirMilenko opened this issue Dec 25, 2016 · 5 comments
Closed

Unable to build module #39

VladimirMilenko opened this issue Dec 25, 2016 · 5 comments

Comments

@VladimirMilenko
Copy link

After cloning there is no way to build this package, also there is no style/Styler class in tns-core-modules which are installed with TNS.

@bradmartin
Copy link
Collaborator

bradmartin commented Dec 26, 2016 via email

@VladimirMilenko
Copy link
Author

cardview.android.ts(6,24): error TS2307: Cannot find module 'ui/styling/style'. cardview.android.ts(14,21): error TS2503: Cannot find namespace 'android'. cardview.android.ts(57,17): error TS2503: Cannot find namespace 'android'. cardview.ios.ts(7,24): error TS2307: Cannot find module 'ui/styling/style'. cardview.ios.ts(12,17): error TS2304: Cannot find name 'UIView'.

Here is the error after running tsc.

@bradmartin
Copy link
Collaborator

bradmartin commented Dec 27, 2016 via email

@bradmartin
Copy link
Collaborator

Hey @VladimirMilenko does that help any?

@bradmartin
Copy link
Collaborator

All is working now. Let me know if you still have issues. Running from the repo, you need to make sure you transpile the .ts to .executable .js files - you can check the scripts in the package.json for some info or just run tsc assuming you have typescript installed on your machine. Then path to demo app and execute tns build ios (or android) and it should work fine. I just fixed an issue with app.ts that caused a crash different than your original report. Hopefully you're good to go now 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants