-
Notifications
You must be signed in to change notification settings - Fork 310
Not able to add third libraries #321
Comments
I have updated all dependencies except ionic-app-scritps pointing it to "0.0.36" instead "0.0.39" and its working. |
Can you provide a sample repo where we can recreate the issue? Thanks, |
@danbucholtz i created a blank project and implemented my code and its working. So, i am checking the config files (package.json, tsconfig.json) to detect where is the difference. I think we can close the issue until i identify where the problem is. |
I just ran into the same issue. The cause was probably different, but: 0.0.39
0.0.36
0.0.39 basically swallowed the exception and left me clueless |
@xx0r did you try 0.0.41? check tsconfig,json this line also I tried with blank project and works fine. |
Thank you for the advice, I updated the scripts to 0.0.41, + checked the tsconfig.json, but the error message is swallowed nonetheless. however, i was able to replicate the minimal issue :)
3.. change app.component.ts to import page1 from the barrel declaration
4... |
just add the code into declarations.ts, you dont need any import. |
I'm seeing the same issue where I downgraded to 0.0.36, ran
Seems useful error messages are being swallowed somewhere, like @xx0r mentions |
Hi @danbucholtz i have updated the latest ionic-app-scripts version (0.0.44) and I am still having the same issue. a couple of things In declarations.d.ts file you will see the definiton of the engagement interface and the variable Engagement. Same issue if I just define the variable as (there is a branch in the repo called engagement-type-any)
My concern is if the implementation on declarations.d.ts is correct or I am missing something else. In the real project that I am working on the compilation fails as I described in the issue when i run ionic run browser, ionic run android or ionic serve.
Could you please take a look and let me know your thoughts? Thanks |
Can you summarize the issue that you're seeing? Sorry, I'm not really following. Thanks, |
@danbucholtz sorry if I was not clear Any idea what is missing? Thanks! |
You shouldn't need to define the type since we provide
That should be sufficient to allow the lib to be imported. Thanks, |
@danbucholtz if i do that i got (using 0.0.45 version)
DT for engagement plugin does not exist. Is there any example where a plugin with no DT is implemented? |
Yes. If you look in your Thanks, |
yes, I have both
and
about how is the library imported not sure if should i do something else. I installed the plugin via npm. |
What does your |
i dont have any imports for engagement, its necessary? |
Yes, definitely. I am not familiar with that library but please review our documentation on importing libraries. http://ionicframework.com/docs/v2/resources/third-party-libs/ I'm going to close this for now since this is not an issue app-scripts, it's more of a question. Thanks, |
Uh oh!
There was an error while loading. Please reload this page.
I am having issues with the latest release (rc2). I have a third library defined in a separated typescript file that works as a wrapper for a library that is available in js (it's a plugin). Since typings are deprecated and @type for this library is not available (https://github.com/DefinitelyTyped/DefinitelyTyped) I added the implementation in declarations.d.ts file. But the library is not available when I build de code (prod or dev mode) and i get that my code was not found. Any ideas?
It was working with rc1
error:
[14:27:08] uglifyjs failed: ENOENT: no such file or directory, open 'C:\Projects\infotycoon-inspections\www\build\main.js' [14:27:08] ionic-app-script task: "build" [14:27:08] Error: ENOENT: no such file or directory, open 'C:\Projects\infotycoon-inspections\www\build\main.js'
plugin: https://github.com/Azure/azure-mobile-engagement-cordova
could this issue be related to the latest update (RC2)?
The text was updated successfully, but these errors were encountered: