Skip to content

'default' is not exported by rappid/dist/rappid.js #1961

Discussion options

You must be logged in to vote

You may have to adapt your imports slightly with vite.

Try specifying the exact file in your import by using:

import { dia, shapes } from '@clientio/rappid/rappid.js';

instead of

import { dia, shapes } from '@clientio/rappid';

Using imports as above and the following Vite vue-ts template should work with both trial and non-trial jointjs+ versions.
https://vitejs.dev/guide/

At the time of writing this template is using the latest version of vite which is 4.0.0.

Both dev and production builds will work with the scripts provided in this template:

{
  "scripts": {
    "dev": "vite", // start dev server, aliases: `vite dev`, `vite serve`
    "build": "vite build", // build for production
    "…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kumilingus
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants