summaryrefslogtreecommitdiff
path: root/cli/proc_state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/proc_state.rs')
-rw-r--r--cli/proc_state.rs13
1 files changed, 4 insertions, 9 deletions
diff --git a/cli/proc_state.rs b/cli/proc_state.rs
index d3c6f2cdd..27cd0603d 100644
--- a/cli/proc_state.rs
+++ b/cli/proc_state.rs
@@ -241,6 +241,9 @@ impl ProcState {
// don't do the unstable error when in the lsp
|| matches!(cli_options.sub_command(), DenoSubcommand::Lsp),
cli_options.no_npm(),
+ cli_options
+ .resolve_local_node_modules_folder()
+ .with_context(|| "Resolving local node_modules folder.")?,
);
let emit_options: deno_ast::EmitOptions = ts_config_result.ts_config.into();
@@ -513,15 +516,7 @@ impl ProcState {
&self.npm_resolver,
))
.with_context(|| {
- format!(
- "Could not resolve '{}' from '{}'.",
- specifier,
- self
- .npm_resolver
- .resolve_package_from_specifier(&referrer)
- .unwrap()
- .id
- )
+ format!("Could not resolve '{}' from '{}'.", specifier, referrer)
});
}