-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
indexer is not a function #28
Comments
My solution was adding |
Might be related / fixed by this: Line 27 in b93dbde
|
As suggested from https://publint.dev/[email protected] {
"version": "1.1.0",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
"dist",
"src"
],
"engines": {
"node": ">=10"
},
"scripts": {
"start": "tsdx watch",
"build": "tsdx build",
"test": "tsdx test",
"lint": "tsdx lint src test",
"prepare": "tsdx build"
},
"husky": {
"hooks": {
"pre-commit": "tsdx lint src test"
}
},
"name": "sanity-algolia",
"author": "Rune Botten",
+ "type": "module",
"module": "dist/sanity-algolia.esm.js",
+ "exports": {
+ "import": "./dist/sanity-algolia.esm.js",
+ "require": "./dist/sanity-algolia.cjs.js"
+ },
"devDependencies": {
"@types/jest": "^26.0.14",
"@types/stopword": "^0.3.0",
"husky": "^4.3.0",
"prettier": "^2.1.2",
"tsdx": "^0.14.0",
"tslib": "^2.0.2",
"typescript": "^4.0.3"
},
"dependencies": {
"algoliasearch": "^4.5.1",
"stopword": "^1.0.3"
}
} I don't know if this would break something else, but could you take a look at maybe implementing this @runeb? :) |
Any updates on this? |
getting the error "indexer is not a function" with the following code. Written in javascript and deployed on netlify serverless function
The text was updated successfully, but these errors were encountered: