Skip to content

Can't use Vue ChartJs in Nova Tool #3460

@theianjohnson

Description

@theianjohnson
  • Laravel Version: 8.48.1
  • Nova Version: 3.22.0

Description:

Trying to use Vue ChartJs in a Nova tool .vue file and when compiling with npm run watch getting the following (snippet) error

ERROR in ./node_modules/chart.js/dist/chart.esm.js
Module parse failed: Unexpected token (6809:12)
You may need an appropriate loader to handle this file type.

Detailed steps to reproduce the issue on a fresh Nova installation:

  1. Create new Nova tool
  2. In the tool repo npm install vue-chartjs chart.js --save
  3. In the Tool.vue file import { LineChart } from 'vue-chartjs';
  4. npm run watch
  5. Error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions