-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
I was using openbibles in my react app, which requires chapter-and-verse as a dependency, and when I call the function I get this error:
TypeError: CaV is not a function
./node_modules/openbibles/main.js/module.exports
node_modules/openbibles/main.js:38
35 | }
36 | }
37 |
> 38 | let a = CaV(ref);
39 | let id = a.book.id;
40 | let chapter = a.chapter;
41 | let startverse = a.from;
So I narrowed it down to chapter-and-verse and tried testing it separately and received the same error. Chapter-and-verse works outside of react, so I'm inferring it has to do with the import syntax. I have tried:
import cv from 'chapter-and-verse'
import {cv} from 'chapter-and-verse'
const cv = require('chapter-and-verse')
const {cv} = require('chapter-and-verse')
which all give the respective errors of:
TypeError: chapter_and_verse__WEBPACK_IMPORTED_MODULE_1___default() is not a function
TypeError: Object(...) is not a function
TypeError: cv is not a function
TypeError: cv is not a function
I'm running out of import syntaxes haha 😅. Some help would be appreciated.
I am running Ubuntu 20.04, React 16.13.1, chapter-and-verse version 3.0.4, and openbibles 1.3.0
Metadata
Metadata
Assignees
Labels
No labels