-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dist/**/*.d.ts
files appear to be incorrect
#14
Comments
Can you show me how you're using the module? I'll try to reproduce the issue. |
Many thanks. Here's some minimal repro code. You can run it as follows: npm i
npm run build You should see a large number of errors like this:
package.json {
"scripts": {
"build": "tsc -p tsconfig.json"
},
"dependencies": {
"@types/node": "^20.8.8",
"assemblyai": "^3.0.0",
"typescript": "^5.2.2"
}
} tsconfig.json {
"compilerOptions": {
"lib": ["es2022", "dom"],
"module": "commonjs",
"moduleResolution": "node",
"outDir": "./build",
"target": "es2022"
},
"include": ["./**/*.ts"]
} test.ts import { AssemblyAI } from "assemblyai";
const client = new AssemblyAI({ apiKey: "xxx" }); |
Thanks, I can reproduce the issue. We've been using the module with other build tools, tsx, etc. which didn't reported issues like this. |
Great news, many thanks! |
@mflorence99 Version 3.0.1 fixed your issue. Let us know if you have any issues! |
I can confirm that the fix works. Many thanks! |
Version: 3.0.0
Consider line #1 in
dist/services/files/index.d.ts
:Within the
assemblyai
project itself, paths beginning with@/...
are resolved via itstsconfig.json
settings. However, when user code imports the library, the following error (and many similar) is generated:Usage instructions in the README do not explain how to overcome these errors. What code or config changes are necessary?
The text was updated successfully, but these errors were encountered: