Open marvinhagemeister opened 1 year ago
We can just remove the unwrap from something more graceful at https://github.com/denoland/deno/blob/c0617d11f6391f1b1b3afffe0152c73b5989ab80/cli/npm/resolvers/local.rs#L179 But basically this happens because somehow that loop was invoked with a path that was outside of self.root_node_modules_path
. resolve_package_folder_from_package()
confirms that referrer
is within self.root_node_modules_path
but then it canonicalizes it. And I noticed self.root_node_modules_path
isn't ever canonicalized.
So maybe this happens when the root node_modules
exists within a symlink?
cc @dsherret
I saw something like this happen after renaming my Deno project folder. Deleting node_modules fixed it.
(This was using Deno 1.41.0.)
Just opened vscode in a new project and got a panic: