Comments (14)
@andreid42tech type declaration is scoped with declare module 'mimetext'
so ideally, there shouldn't be any conflict but I'll check this out and maybe will just publish dist and types as you have suggested. I need a few days for this, thanks for bringing this up.
besides, i would recommend to check if there is any package you have installed called @types/mimetext. remove it if exists.
from mimetext.
closing this issue as all the type recognition issues has been resolved.
from mimetext.
hi @andreid42tech that was probably because of the naming issue in the type declaration file, just fixed it. could you update and confirm that the issue resolved?
from mimetext.
hi @andreid42tech that was probably because of the naming issue in the type declaration file, just fixed it. could you update and confirm that the issue resolved?
Hey, it didn't help.
from mimetext.
@andreid42tech could you share your setup so I can simulate your environment and test it? Share repository if possible, or your ide, package.json and other config files.
from mimetext.
@andreid42tech could you share your setup so I can simulate your environment and test it? Share repository if possible, or your ide, package.json and other config files.
That would be difficult, something to mention is that we are using the mono-repos with multiple tsconfigs
and I would guess that there's something messy happening because mimetext
comes with its full source code and its tsconfig
inside node_modules
, maybe we should ship only the dist
and TS typings?
from mimetext.
@andreid42tech type declaration is scoped with
declare module 'mimetext'
so ideally, there shouldn't be any conflict but I'll check this out and maybe will just publish dist and types as you have suggested. I need a few days for this, thanks for bringing this up.besides, i would recommend to check if there is any package you have installed called @types/mimetext. remove it if exists.
Thanks!
from mimetext.
hi @andreid42tech update to the latest version please, is the problem still continue?
from mimetext.
Hey @muratgozel, yes, I think it is due to this library being sourced fully and not bundled/compiled, could that be true?
![image](https://private-user-images.githubusercontent.com/119295676/237942474-62b1e83b-66c4-4ed5-ae87-75827b70c4f2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTYyMzAxMjMsIm5iZiI6MTcxNjIyOTgyMywicGF0aCI6Ii8xMTkyOTU2NzYvMjM3OTQyNDc0LTYyYjFlODNiLTY2YzQtNGVkNS1hZTg3LTc1ODI3YjcwYzRmMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNTIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDUyMFQxODMwMjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yMzQ3ZWYwZGI2ODMwYmUyMmM2ZjNlYmRjYzU0YzNjODc2ZGIzZjk3YjBkNGM3YzM2OGZiNDQwMmNkNjdmMzA2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.9L6QU3Xf0iEEDKciHwunbZzkHEeKXDRfFc1sN_hwYso)
from mimetext.
I'm getting the same error when switching typescript config moduleResolution
to node16
This is most likely related to the mess that is es modules, either this repo needs to support esm or just stick to using commonjs modules
See similar issue microsoft/TypeScript#51406
from mimetext.
I am facing the same issue with "mimetext": "^3.0.16",
Here is the sample tsconfig.
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
from mimetext.
Looks like it is trying to resolve es module one and cannot use the type
from mimetext.
Just sent a PR which fixes this for me: #50
It's a bit clunky and doesn't handle CJS but should at least get things working for ES users.
from mimetext.
@andreid42tech i have updated type generations, give it another go if possible, please, it should all be fixed now.
from mimetext.
Related Issues (20)
- Image attachments not supported in MS Outlook (MacOS Ventura) HOT 1
- Version 3.0 seems that broke aws SESV2 functionality HOT 1
- With 3.07 cjs import is not working HOT 8
- Add a Reply-To header HOT 6
- export for MIMEMessage HOT 1
- Does not support attachments as zip files HOT 1
- Error 501: Line too long HOT 4
- Encoded Subject too long HOT 2
- Type MimeMessage is incorrect in "@types/mimetext": "^2.0.3" for "mimetext": "^3.0.16" and is also misleading compared to the docs HOT 4
- pnpm i mimetext --> βWARNβ 1 deprecated subdependencies found: @tsconfig/[email protected] HOT 1
- Unicode characters in names?
- Move types to devDependencies HOT 1
- add `parse` method HOT 2
- Declaration file for module 'mimetext' is missing since v3.0.17 HOT 17
- CJS version of `[email protected]`+ can't be imported, ESM issues HOT 8
- Errors in Cloudflare Workers environment with recent versions HOT 3
- Mailbox function signature changes in patch release? HOT 3
- text/plain alternative part disappears when adding inline Image HOT 2
- Upgrading from mimetext version 3.0.16 to 3.0.21 throws cannot use import statement outside a module HOT 4
- Add support for multiple addresses as Reply-To value HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mimetext.