appreciated / apexcharts-flow

ApexCharts.js wrapper for the Vaadin Platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[TypeScript] Could not find a declaration file for module 'onecolor'.

mamungm opened this issue · comments

Describe the bug
[TypeScript] Could not find a declaration file for module 'onecolor'. '/Users/mamungm/Desktop/Development/bitbucket/bond/engine/node_modules/onecolor/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/onecolor if it exists or add a new declaration (.d.ts) file containing declare module 'onecolor';
/Users/mamungm/Desktop/Development/bitbucket/bond/engine/frontend/generated/jar-resources/com/github/appreciated/apexcharts/apexcharts-wrapper.ts:6:19
4 | import ApexCharts from 'apexcharts/dist/apexcharts.esm';
5 | import '@webcomponents/shadycss/apply-shim.min.js';

6 | import color from "onecolor";
| ^^^^^^^^^^
7 |
8 | @CustomElement('apex-charts-wrapper')
9 | export class ApexChartsWrapper extends LitElement {

Steps or code example to Reproduce
Steps to reproduce the behavior:
Install and run a view

or if the bug occurs when using a specific chart type

ApexCharts pieChart = new ApexCharts()
...
return pieChart;

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

implementation("com.github.appreciated:apexcharts:23.0.0")
plugins {
java
id("org.springframework.boot") version "2.7.5"
id("io.spring.dependency-management") version "1.1.0"
id("com.vaadin") version "23.2.12"
}

Try with the new version in the Vaadin directory. Reopen if the issue still occurs.