CrazyTim / spin-wheel

An easy to use, themeable component for randomising choices and prizes.
https://crazytim.github.io/spin-wheel/examples/themes
MIT License
174 stars 45 forks source link

Regular import doesn't work without specifying the path #43

Open matronator opened 3 months ago

matronator commented 3 months ago
import { Wheel } from 'spin-wheel';

Does not work, an error is logged to the console that it can't find any module. It only started working, when I specified the path to the script like this:

import { Wheel } from '../../node_modules/spin-wheel/dist/spin-wheel-esm.js';