tannerntannern / ts-mixer

A small TypeScript library that provides tolerable Mixin functionality.
MIT License
384 stars 27 forks source link

Property 'makeFoo' does not exist on type 'FooBar'. #54

Closed Volna13 closed 1 year ago

Volna13 commented 1 year ago

I'm trying to run an example from your repository, but I'm getting an error. I also tried to copy my ts-config into the repl.it sandbox and there is no such problem. Do you have any idea why i am getting this error On my computer, the version of ts is 4.4.4 (the same version is in the sandbox)

Please help me figure out what could be the problem? If you need more details please let me know. My tsconfig.json

{
  "compilerOptions": {
    "baseUrl": "src",
    "skipLibCheck": true,
    "module": "commonjs",
    "esModuleInterop": true,
    "noImplicitReturns": false,
    "noUnusedLocals": true,
    "outDir": "lib",
    "sourceMap": true,
    "strict": true,
    "target": "es2017",
    "noImplicitAny": true,
    "lib": ["es2019", "es2020", "dom"],
    "types": ["chai", "mocha", "node"],
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "resolveJsonModule": true
  },
  "compileOnSave": true,
  "include": ["src"],
  "exclude": ["node_modules", "**/*.test.ts", "**/*.spec.ts"]
}
image
tannerntannern commented 1 year ago

@Volna13 this seems like a configuration issue with your editor (perhaps the editor is using a different TypeScript version?), not something specific to ts-mixer. As you pointed out, this is not a problem in other environments. I also confirmed it's not an issue in the TypeScript playground.

I'm not sure there's anything for me to do here. There are a million things that could be wrong with your editor and I don't have time to help with issues that aren't directly related to ts-mixer. I'm sorry I can't help more, but I have to draw the line somewhere.

Volna13 commented 1 year ago

sorry, thanks for the help. It seems problem related to the project (I tried other code editors)