-
Notifications
You must be signed in to change notification settings - Fork 12k
Getting error while importing js file from assets folder and using in angular component Angular 8.0.x #15115
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
Comments
Might be related to #15102 |
Actually it should have been already solved via #14985. If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior. |
@alan-agius4 did you mean to upgrade version 8.1 ? Update++
Regards |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I have a external .js file which i downloaded and placed into my assets folder.
After following steps from here, still no success.
Steps performed to add js file in angular project;
Adding relative path of js file to script [] in angular.json
Creating typyings.d.ts under src folder
declare var myJs: any;
Import in component
import * as myJs from 'myJs'
Getting error; undefined
Stakcblitz url: https://stackblitz.com/edit/angular-lollipop-chart
Github repo: https://github.com/narendrasinghrathore/angular-lollipop-chart
Regards
The text was updated successfully, but these errors were encountered: