userflow / userflow.js

Async loader for Userflow.js
https://userflow.com
MIT License
7 stars 2 forks source link

Loader errro #4

Closed twigs67 closed 1 year ago

twigs67 commented 2 years ago

Hello,

I'm getting the following error:

./node_modules/userflow.js/src/userflow.ts 1:12
Module parse failed: Unexpected token (1:12)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> import type {ConditionalKeys} from 'type-fest'
| import {detectBrowserTarget} from './detect-browser-target'
|

Would anyone happen to know what the issue is?

sebastianseilund commented 2 years ago

Hi there,

Which userflow.js version do you have installed?

Which bundler are you using here? It looks like it's not respecting our package.json's main or module fields.