Skip to content

NPM cannot run demo on windows #7

@marc-weber1

Description

@marc-weber1

System info:
Windows 11 Pro 10.0.26200
using cmd.exe
cargo 1.91.1 (ea2d97820 2025-10-10)
wasm-pack 0.13.1
npm 11.3.0

Steps to reproduce:

wasm-pack build
cd www
npm i
npm start

Error:

> plotters-wasm-demo@0.1.0 start
> vite build && vite

vite v6.4.1 building for production...
✓ 9 modules transformed.
✗ Build failed in 58ms
error during build:
index.js (1:16): "default" is not exported by "../pkg/wasm_demo.js", imported by "index.js".
file: index.js:1:16

1: import { Chart, default as init } from "wasm-demo";
                   ^
2:
3: const canvas = document.getElementById("canvas");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions