A clear and concise description of what the bug is.
SyntaxError: Unexpected token ...
SyntaxError: Unexpected token ...
at Object../node_modules/[email protected]@fuse.js/dist/fuse.esm.js (11.js:34)
at __webpack_require__ (app.js:85)
at eval (employsHandle.vue?./node_modules/[email protected]@cache-loader/dist/cjs.js??ref--12-0!./node_mod…:29)
at Module../node_modules/[email protected]@cache-loader/dist/cjs.js?!./node_modules/[email protected]@babel-loader/lib/index.js!./node_modules/[email protected]@cache-loader/dist/cjs.js?!./node_modules/[email protected]@vue-loader/lib/index.js?!./src/pages/database/employsManage2/employsHandle.vue?vue&type=script&lang=js& (58.js:59)
at __webpack_require__ (app.js:85)
at eval (employsHandle.vue:2)
at Module../src/pages/database/employsManage2/employsHandle.vue?vue&type=script&lang=js& (58.js:507)
at __webpack_require__ (app.js:85)
at eval (employsHandle.vue:3)
at Module../src/pages/database/employsManage2/employsHandle.vue (58.js:495)
The Fuse.js version where this bug is happening.
fuse.[email protected]
Google Chrome 56.0.2924.87
There are no other steps
Just use it
import Fuse from 'fuse.js'
How is the progress here? Any workarounds? I'd really like to try out fuse, but with this bug it's not usable at all. BTW I'm using typescript so my import looks like this import * as Fuse from 'fuse.js'; and i get This expression is not constructable. when i try new Fuse(data, searchOptions)
UPDATE: using the common js build for now, and works really nice 👍
I had to downgrade to version 3.6.1.
import Fuse from 'fuse.js/dist/fuse.min.js' works as well
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days