-
Notifications
You must be signed in to change notification settings - Fork 25
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
When using the "xmlFormatter()" VS code does not able to identify. #68
Comments
Hi @harshitg123, can you let me know how you are using |
Hello @chrisbottin,
fetchXqueryData() is a function which is fetching the XQuery. for sample you can use.
|
Thanks, I see what you mean now ... literally 😄. I will take a look and get back to you. |
@harshitg123 I'm not able to replicate the issue yet, perhaps it's a VS code configuration thing. Can you share your |
jsconfig.json file
I guess it is something related to the typescript check, If I make "checkJs" to false the error is gone. |
…ile to be compatible with CommonJS setup (#68)
@harshitg123 I have made some changes in version The issue was the TS declaration file was intended for ES module type but you are using CommonJS and making use of the TS declaration file using Now the new TS declaration file should be compatible with both ES and CommonJS module types. |
Thanks @chrisbottin I've installed the new version it's working fine now 👍🏻 |
Hi, @chrisbottin I was wondering whether the new
I will continue scratching my head and looking for configuration switches, of course, but still. |
Hi @udavx, Yes the new a) The What's your tsconfig.json / project setup? You should not have If you share your setup, I can have a look. |
The changes made previously have been reverted as they caused other issues (#70) @udavx, this should sort out your problem. @harshitg123, we will need to come up with another solution. Instead of using CommonJS modules, can you use ES modules? You will need to change the |
@chrisbottin, thank you for the prompt action (incl. the 3.6.2) For the record or not, I tried to create a minimal set to reproduce it, here it is: https://github.com/udavx/demo-for-issue-68-of-xml-formatter-3.6.1 Initially, it's |
Hi @chrisbottin, Sure, Let me check and update it. |
Hi @chrisbottin, I've used |
@harshitg123, try with this jsconfig.json ... {
"compilerOptions": {
"moduleResolution": "node",
"checkJs": true
},
"exclude": ["node_modules"]
} And you might need to add |
Hi @chrisbottin, Really sorry for reply was occupied by some urgent work. It worked for me, Thanks |
Noticed the same issue with the |
Hi There,
So, xmlFormatter() VS code is not able to recognise it.
Error:
This expression is not callable.
Type 'typeof import("c:/Users//Documents/Extension/xquery-formatter/node_modules/xml-formatter/dist/types/index")' has no call signatures.
Now, the interesting part is after running the code it is working i.e. I'm getting the formatted code.
The text was updated successfully, but these errors were encountered: