CrazyTim / spin-wheel

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

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

Open matronator opened 4 months ago

matronator commented 4 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';