-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Argument of type 'string | URL' is not assignable to parameter of type 'string' #6755
Comments
Caused by #6653. Version of |
hi @kitsonk thank you so much for coming and helping us, i will try :) |
hi @kitsonk this is the result of deno info index.ts on my system : `error: TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'. TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'. TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'. TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'. TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'. TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'. TS2339 [ERROR]: Property 'link' does not exist on type 'typeof Deno'. 'Deno.link' is an unstable API. Did you forget to run with the '--unstable' flag? TS2339 [ERROR]: Property 'linkSync' does not exist on type 'typeof Deno'. 'Deno.linkSync' is an unstable API. Did you forget to run with the '--unstable' flag? TS2339 [ERROR]: Property 'symlink' does not exist on type 'typeof Deno'. 'Deno.symlink' is an unstable API. Did you forget to run with TS2339 [ERROR]: Property 'symlink' does not exist on type 'typeof Deno'. 'Deno.symlink' is an unstable API. Did you forget to run with TS2339 [ERROR]: Property 'symlinkSync' does not exist on type 'typeof Deno'. 'Deno.symlinkSync' is an unstable API. Did you forget to run with the '--unstable' flag? TS2339 [ERROR]: Property 'symlinkSync' does not exist on type 'typeof Deno'. 'Deno.symlinkSync' is an unstable API. Did you forget to run with the '--unstable' flag? TS2339 [ERROR]: Property 'utime' does not exist on type 'typeof Deno'. 'Deno.utime' is an unstable API. Did you forget to run with the TS2339 [ERROR]: Property 'utimeSync' does not exist on type 'typeof Deno'. 'Deno.utimeSync' is an unstable API. Did you forget to run with the '--unstable' flag? TS2339 [ERROR]: Property 'symlink' does not exist on type 'typeof Deno'. 'Deno.symlink' is an unstable API. Did you forget to run with TS2339 [ERROR]: Property 'symlink' does not exist on type 'typeof Deno'. 'Deno.symlink' is an unstable API. Did you forget to run with TS2339 [ERROR]: Property 'utime' does not exist on type 'typeof Deno'. 'Deno.utime' is an unstable API. Did you forget to run with the TS2339 [ERROR]: Property 'symlinkSync' does not exist on type 'typeof Deno'. 'Deno.symlinkSync' is an unstable API. Did you forget to run with the '--unstable' flag? TS2339 [ERROR]: Property 'symlinkSync' does not exist on type 'typeof Deno'. 'Deno.symlinkSync' is an unstable API. Did you forget to run with the '--unstable' flag? TS2339 [ERROR]: Property 'utimeSync' does not exist on type 'typeof Deno'. 'Deno.utimeSync' is an unstable API. Did you forget to run with the '--unstable' flag? TS2339 [ERROR]: Property 'utime' does not exist on type 'typeof Deno'. 'Deno.utime' is an unstable API. Did you forget to run with the TS2339 [ERROR]: Property 'utimeSync' does not exist on type 'typeof Deno'. 'Deno.utimeSync' is an unstable API. Did you forget to run with the '--unstable' flag? TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'. TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'. TS2339 [ERROR]: Property 'link' does not exist on type 'typeof Deno'. 'Deno.link' is an unstable API. Did you forget to run with the '--unstable' flag? TS2339 [ERROR]: Property 'linkSync' does not exist on type 'typeof Deno'. 'Deno.linkSync' is an unstable API. Did you forget to run with the '--unstable' flag? TS2339 [ERROR]: Property 'symlink' does not exist on type 'typeof Deno'. 'Deno.symlink' is an unstable API. Did you forget to run with TS2339 [ERROR]: Property 'symlink' does not exist on type 'typeof Deno'. 'Deno.symlink' is an unstable API. Did you forget to run with TS2339 [ERROR]: Property 'symlinkSync' does not exist on type 'typeof Deno'. 'Deno.symlinkSync' is an unstable API. Did you forget to run with the '--unstable' flag? TS2339 [ERROR]: Property 'symlinkSync' does not exist on type 'typeof Deno'. 'Deno.symlinkSync' is an unstable API. Did you forget to run with the '--unstable' flag? TS2339 [ERROR]: Property 'utime' does not exist on type 'typeof Deno'. 'Deno.utime' is an unstable API. Did you forget to run with the TS2339 [ERROR]: Property 'utimeSync' does not exist on type 'typeof Deno'. 'Deno.utimeSync' is an unstable API. Did you forget to run with the '--unstable' flag? TS2339 [ERROR]: Property 'symlink' does not exist on type 'typeof Deno'. 'Deno.symlink' is an unstable API. Did you forget to run with TS2339 [ERROR]: Property 'symlink' does not exist on type 'typeof Deno'. 'Deno.symlink' is an unstable API. Did you forget to run with TS2339 [ERROR]: Property 'utime' does not exist on type 'typeof Deno'. 'Deno.utime' is an unstable API. Did you forget to run with the TS2339 [ERROR]: Property 'symlinkSync' does not exist on type 'typeof Deno'. 'Deno.symlinkSync' is an unstable API. Did you forget to run with the '--unstable' flag? TS2339 [ERROR]: Property 'symlinkSync' does not exist on type 'typeof Deno'. 'Deno.symlinkSync' is an unstable API. Did you forget to run with the '--unstable' flag? TS2339 [ERROR]: Property 'utimeSync' does not exist on type 'typeof Deno'. 'Deno.utimeSync' is an unstable API. Did you forget to run with the '--unstable' flag? TS2339 [ERROR]: Property 'utime' does not exist on type 'typeof Deno'. 'Deno.utime' is an unstable API. Did you forget to run with the TS2339 [ERROR]: Property 'utimeSync' does not exist on type 'typeof Deno'. 'Deno.utimeSync' is an unstable API. Did you forget to run with the '--unstable' flag? Found 40 errors.` |
how to update my std into specific version on my system?? |
Sorry, I forgot it tries to do a compile. The problem is still the same, code you are using is depending on |
|
hi @kitsonk we are going back to deno 1.1.3 and then we get new error but only one error :
|
So something you are using is only compatible with Deno 1.2.0 and is importing |
An alternative solution i need to remove some package and create alternative API using node.js, here some package that become culprit :
hi @kitsonk thank you so much for your help |
I am getting this error too. But, it seems to be deep within deno
But, hey, I could be missing the boat entirely. PS: Here is my code: Here is how to replicate:
Thanks in advance. I really am at wit's end. If the trouble is my own doing, please forgive me. |
@reselbob your problem is the same as the others. You are using Deno 1.2.0, but some dependency of yours is pulling in |
Thank you @kitsonk, sincerely. So are you saying that one of the culprits, I wish there was a way I could see the full stack trace. Again, thank you! |
@reselbob |
Am I doing something terribly wrong @Yamboy1 |
You should replace |
I'm so lost. how the f--- do I fix this error? There's no package manager. |
@chovy Deno has a package manager built into it. if you run |
error: Uncaught SyntaxError: The requested module './levels.ts' does not
provide an export named 'LevelName'
…On Thu, Jul 23, 2020 at 5:41 PM Yamboy1 ***@***.***> wrote:
@chovy <https://github.com/chovy> Deno has a package manager built into
it. if you run deno info --no-check deps.ts (replace deps.ts with
whatever your main entry file is if you don't have a deps.ts), it should
give you a tree view of all your dependencies. From there you can work out
which dependencies are the problem, and deal with it accordingly
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6755 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAGV5IM537KXDQHOBSV3ODR5DKCFANCNFSM4O2I75SQ>
.
--
Anthony Ettinger
http://anthony.ettinger.name
anthony@ettinger.name
+1 (831) 406-1123
|
@chovy, elaborate, please. Does your comment reference something in my code? |
@chovy It looks like there's an unversioned dependency on the std/log module, which is causing that error. You can try reloading the cache by running |
@chovy that additional error you have is that the code is not |
I'm still having problems resolving this problem when I run:
I get:
This is trying to build and run:
I;m unclear how to get a current list of dependencies when what I'm currently dependent on has this issue is this all documented somewhere. Is there a deno discussion group that I can discuss this issue on? |
@mwoodpatrick Join us on discord |
Will do, many thanks |
|
I had this problem after updating in a script which uses only Deno dependencies. I had to refresh the cache by running the |
Workaround:
Run your app again with "--reload". Done. |
if this command don't help you at all , you guys can try this after upgrade the deno version and fix incompatible packages : |
I have the same problem, this happens when I import my database connection file (denodb) in my index.ts. When I run the script this is this the output:
I already tried most of the options they comment, but none of them work, I even installed version 1.2.0 but it still does not work |
@angel-codes Looks like Dex made the terrible decision of copy-pasting Deno's std modules into their code, instead of importing them. This modules are unstable, and with a recent bug fix in the definition of the URL api, also incompatible with Deno version 1.2+. In order to fix this, downgrade to Deno 1.1.3 or lower or open an issue in Dex to fix the module. (Would be easy to make if he/she hadn't pushed the dependencies alongside the repo) |
How to use importmap? |
I have the newer version of deno 1.10.3 and when I am trying to use command , deno run --allow-net --config=tsconfig.json index.ts I get following error. error: TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'. TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'. TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
|
@shreyasrkulkarni The version of the dependencies you are using (e.g. oak) do not work with 1.10.3. You need to update your dependencies or downgrade your version of Deno. |
Actually looking at it |
Thanks for the reply @kitsonk . I dropped the idea of using dactyl and started working on oak and denodb. It did work fine until I used the Relationships concept in the denodb. Here is the actual problem:- |
Happened to me which imports from std@0.98.0. A simple deno upgrade to 1.11.0 fixed this for me. |
Just upgrade my deno to 1.2 and then my production software failure, i really need some help in hurry ,
anybody can help?
The text was updated successfully, but these errors were encountered: