Closed raphaelsiz closed 2 years ago
This is because you're using require
syntax in a module-only environment. Try import Uwuifier from 'uwuifier'
.
https://codesandbox.io/s/thirsty-lamport-969h2j?file=/src/index.ts
import was throwing errors too bc I'm just using it in a generic nodejs index.js is uwuifier only meant to be used in specific situations? like frameworks etc?
I think you're either running the wrong Node.js version or something is misconfigured in your package.json
, could you link your repository? :)
So I installed the package the normal way (bc I was getting errors tryna require from the Deno link) and here are two lines of my code:
When I run my project, I get the error "Uwuifier is not a contructor." I tried console.logging Uwuifier to see what it was counting it as and... it's a class. Surprise surprise. Does anyone know why this would count as a class in the log, but not as a constructor to create an instance of it?