Skip to content
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

Module not found error while importing from _pb.d.ts file #304

Open
Atif-Bashir-1998 opened this issue Jun 30, 2022 · 0 comments
Open

Module not found error while importing from _pb.d.ts file #304

Atif-Bashir-1998 opened this issue Jun 30, 2022 · 0 comments

Comments

@Atif-Bashir-1998
Copy link

I have compiled a porto file fileA.porto using ts-protoc-gen and got two files fileA_pb.js and fileA_pb.d.ts
I am trying to import ts class in fileA_pb.ts following this section of documentation: https://www.npmjs.com/package/ts-protoc-gen#:~:text=In%20the%20above%20example%2C%20the%20generated%20folder%20will%20contain%20both%20.js%20and%20.d.ts%20files%20which%20you%20can%20reference%20in%20your%20TypeScript%20project%20to%20get%20full%20type%20completion%20and%20make%20use%20of%20ES6%2Dstyle%20import%20statements%2C%20eg%3A

But this gives an error stating that:

Module not found: Error: Can't resolve 'porto/logic_pd'

I am using Vue 3 with TS and "ts-protoc-gen": "^0.15.0"

@Atif-Bashir-1998 Atif-Bashir-1998 changed the title Module not found error Module not found error | Vue 3 TS Jun 30, 2022
@Atif-Bashir-1998 Atif-Bashir-1998 changed the title Module not found error | Vue 3 TS Module not found error while importing from _pb.d.ts file Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant