-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
fix: fixes typescript and intellisense #2562
base: master
Are you sure you want to change the base?
fix: fixes typescript and intellisense #2562
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your engagement, that's really great to have opportunity review your PR.
I little misunderstood the reason of this PR, as all works good for my projects.
import { expect } from 'chai'; | ||
import ExcelJS from '../../index'; | ||
import { expect } from "chai"; | ||
import * as ExcelJS from "../../index"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's actually breaking compatibility change, I don't see reason of doing that now. Also importing everything from exceljs works great for my projects.
What kind of error have you got?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would be glad for sharing me your test repo from screenshots.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey sorry missed this message, will send you the repo later today
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just pushed the repo here: https://github.com/groozin/exceljs-test
That being said - using the vscode
version
Version: 1.85.1 (Universal)
Commit: 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2
Date: 2023-12-13T09:48:06.308Z
Electron: 25.9.7
ElectronBuildId: 25551756
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin x64 23.1.0
and node 18
I cant reproduce anymore. Still using the version 4.30
of the exceljs
.
Maybe the recent vscode
versions fixed the problem.
But just in case I uploaded the repo I used to test.
I actually got the same exact problem and this PR fixed it. To ensure proper development, I had to specifiy Please fix this. |
Any update @Siemienik @groozin ? |
@marisuxma @alexandre-embie I tried both versions |
I'm using webstorm. I think that's where the problem is from, but your package is the only one I have that has this problem so there has to be something setup wrong |
Hi, i have this issue too |
Summary
Fixes #2548
Both intellisense and typescript tests were broken on
master
. Though the issue mentions webstorm as the editor I had the same with vscode.Converted the
index.ts
intoindex.js
with CJS syntax as pereslint
requirement. Also fixed the typescript tests and added them tonpm run test:full
script - now that they are working.Test plan
For testing I ran
npm run build
Then
npm run test
(the output is really big so I omit it here).Also to check intellisense working and to make sure that different module approaches are still working I created 3 files: one
ESM
, oneCJS
and oneTS
. I then usenpm install
from the local source code of my branch to have the changes in. And both checked the intellisens and ran the code in the files to see if the lib is working.See below:
Related to source code (for typings update)