question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ApexCharts is not defined

See original GitHub issue

Hi, First of all, I congratulate you for this work. Great work! I wanted to use ng-apexcharts in my project. but I get this error. please help me…

ReferenceError: ApexCharts is not defined at ChartComponent.push…/node_modules/ng-apexcharts/fesm5/ng-apexcharts.js.ChartComponent.createElement (ng-apexcharts.js:132) at AsapAction.<anonymous> (ng-apexcharts.js:58)

app.module.ts: import { NgApexchartsModule } from 'ng-apexcharts';

### Angular CLI: { "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "ang-route1": { "root": "", "sourceRoot": "src", "projectType": "application", "prefix": "app", "schematics": {}, "architect": { "build": { "builder": "@angular-devkit/build-angular:browser", "options": { "outputPath": "dist/ang-route1", "index": "src/index.html", "main": "src/main.ts", "polyfills": "src/polyfills.ts", "tsConfig": "src/tsconfig.app.json", "assets": [ "src/favicon.ico", "src/assets" ], "styles": [ "src/styles.css" ], "scripts": [ "./node_modules/apexcharts/dist/apexcharts.min.js" ], "es5BrowserSupport": true }, "configurations": { "production": { "fileReplacements": [ { "replace": "src/environments/environment.ts", "with": "src/environments/environment.prod.ts" } ], "optimization": true, "outputHashing": "all", "sourceMap": false, "extractCss": true, "namedChunks": false, "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true, "budgets": [ { "type": "initial", "maximumWarning": "2mb", "maximumError": "5mb" } ] } } }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { "browserTarget": "ang-route1:build" }, "configurations": { "production": { "browserTarget": "ang-route1:build:production" } } }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { "browserTarget": "ang-route1:build" } }, "test": { "builder": "@angular-devkit/build-angular:karma", "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", "tsConfig": "src/tsconfig.spec.json", "karmaConfig": "src/karma.conf.js", "styles": [ "src/styles.css" ], "scripts": [], "assets": [ "src/favicon.ico", "src/assets" ] } }, "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": [ "src/tsconfig.app.json", "src/tsconfig.spec.json" ], "exclude": [ "**/node_modules/**" ] } } } }, "ang-route1-e2e": { "root": "e2e/", "projectType": "application", "prefix": "", "architect": { "e2e": { "builder": "@angular-devkit/build-angular:protractor", "options": { "protractorConfig": "e2e/protractor.conf.js", "devServerTarget": "ang-route1:serve" }, "configurations": { "production": { "devServerTarget": "ang-route1:serve:production" } } }, "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": "e2e/tsconfig.e2e.json", "exclude": [ "**/node_modules/**" ] } } } } }, "defaultProject": "ang-route1" }

### package.json : "@angular/animations": "~7.2.0", "@angular/common": "~7.2.0", "@angular/compiler": "~7.2.0", "@angular/core": "~7.2.0", "@angular/forms": "~7.2.0", "@angular/platform-browser": "~7.2.0", "@angular/platform-browser-dynamic": "~7.2.0", "@angular/router": "~7.2.0", "apexcharts": "^3.6.7", "core-js": "^2.5.4", "ng-apexcharts": "^1.0.1", "popper.js": "^1.14.7", "rxjs": "~6.3.3", "tslib": "^1.9.0", "zone.js": "~0.8.26"

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

2reactions
codeunifiercommented, Aug 28, 2019

I’m getting this same error, with latest versions (apexcharts@3.8.5 and ng-apexcharts@1.0.5) as well as the suggested (apexcharts@3.6.8 and ng-apexcharts@1.0.2) using Angular 8

0reactions
askshrmcommented, Jun 10, 2020

I’m getting this same error, with latest versions (apexcharts@3.8.5 and ng-apexcharts@1.0.5) as well as the suggested (apexcharts@3.6.8 and ng-apexcharts@1.0.2) using Angularjs 1.7

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] Uncaught ReferenceError: ApexCharts is not defined #46
I've trying use ApexCharts in my RoR 6 app, but occurred the error below: My Gemfile: source 'https://rubygems.org' git_source(:github) ...
Read more >
using ApexChart for rails7 raising error Uncaught ...
This is likely caused because your application.js script tag has defer="defer" and the library by default renders script tags that expect ...
Read more >
Apexcharts how to add js scripts - General - Node-RED Forum
Hi, I've been trying to make apexcharts to work on the dashboard via ... VM1837:158 Uncaught ReferenceError: ApexCharts is not defined at ...
Read more >
[BUG] Uncaught ReferenceError: ApexCharts is not defined #46
I've trying use ApexCharts in my RoR 6 app, but occurred the error below: image. My Gemfile: source 'https://rubygems.org' git_source(:github) { |repo| ...
Read more >
ApexCharts & Bootstrap Integration by Keenthemes
ApexCharts ' CSS and Javascript files are bundled in the global style and scripts bundles ... Simply define a blank div with a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found