o-development / ldo

Monorepo for Linked Data Objects (ldo)
MIT License
23 stars 5 forks source link

Cannot find module 'typed-emitter' or its corresponding type declarations. #49

Open tim-transparent-ai opened 3 weeks ago

tim-transparent-ai commented 3 weeks ago

Getting an error from Solid LDO when trying to build for TS:

node_modules/@ldo/solid/dist/resource/Resource.d.ts:6:31 - error TS2307: Cannot find module 'typed-emitter' or its corresponding type declarations.

6 import type TypedEmitter from "typed-emitter";

Using node and TSC for the build

Here is my TSConfig:

{
  "compilerOptions": {
    "target": "esnext",
    "module": "esnext",
    "lib": ["es2021", "DOM", "DOM.Iterable"],
    "declaration": true,
    "declarationMap": true,
    "sourceMap": true,
    "inlineSources": true,
    "outDir": "./build",
    "rootDir": "./src",
    "strict": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "noImplicitReturns": true,
    "noFallthroughCasesInSwitch": true,
    "noImplicitAny": true,
    "noImplicitThis": true,
    "moduleResolution": "node",
    "allowSyntheticDefaultImports": true,
    "experimentalDecorators": true,
    "forceConsistentCasingInFileNames": true,
    "noImplicitOverride": true,
    "plugins": [
      {
        "name": "ts-lit-plugin",
        "strict": true
      }
    ],
    "types": ["node"]
  },
  "include": ["src/**/*.ts"],
  "exclude": []
}
timbot1789 commented 3 weeks ago

^ Used the wrong github account when posting this issue. You can message me at this personal account, timbot1789.