baojs
baojs copied to clipboard
This expression is not constructable. Type 'typeof import(...) has no construct signatures.
Started a new project and created index.ts
with this inside:
import Bao from "baojs";
const app = new Bao();
But the new Bao()
is underlined with the following error:
This expression is not constructable.
Type 'typeof import("/path/to/project/node_modules/baojs/dist/index")' has no construct signatures.
I'm using version 0.2.1.
Running into this issue as well.
I'll try to reproduce, what version of Bun are you running?
0.5.1
I am running into this issue as well.
- I installed Bao
- I run
bun init
- I run
bun add baojs
- I pasted this into index.ts
import Bao from "baojs";
const app = new Bao();
I got exactly the same error. Using Bun v0.5.8 and Bao 0.2.1. I tried on intel macbook and m1 macbook.