Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3rd party library did not work on Production #1033

Closed
vukhanhtruong opened this issue Jun 7, 2016 · 3 comments
Closed

3rd party library did not work on Production #1033

vukhanhtruong opened this issue Jun 7, 2016 · 3 comments

Comments

@vukhanhtruong
Copy link

vukhanhtruong commented Jun 7, 2016

Please provide us with the following information:

angular-cli: 1.0.0-beta.5
node: 5.10.0
os: linux x64

The 3rd library did great in development. In prod, the 3rd lib was not defined. I got the following logs:


ORIGINAL EXCEPTION: ReferenceError: tingle is not defined
ReferenceError: tingle is not defined
at a.removeItem (index.js:1)
at b._View_a1._handle_click_27_0 (a.template.js:710)
at eval (main.js:22)
at eval (main.js:13)
at eval (main.js:12)
at ZoneDelegate.invoke (zone.js:323)
at Object.inner.inner.fork.onInvoke (main.js:21)
at ZoneDelegate.invoke (zone.js:322)
at Zone.runGuarded (zone.js:230)
at a.runInnerGuarded (main.js:21)

Please help me solve this issue. Thanks so much.

@filipesilva
Copy link
Contributor

Did you follow https://github.com/angular/angular-cli/wiki/3rd-party-libs for adding your third party library?

If you're trying to add javascript as script tags, you have to instead load it via SystemJS, see #1015

@vukhanhtruong
Copy link
Author

Declaring it as global, then it works great.
Thanks so much.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants