Commit 0cc87425 authored by Luke Sandberg's avatar Luke Sandberg

renames and snapshot updates

parent 6415d97c
......@@ -254,31 +254,31 @@ impl Effect {
}
}
pub enum AssignmentKind {
InRootScope,
InFunction,
pub enum AssignmentScope {
ModuleEval,
Function,
}
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum AssignmentKinds {
AllInRootScope,
pub enum AssignmentScopes {
AllInModuleEvalScope,
AllInFunction,
Mixed,
}
impl AssignmentKinds {
fn new(initial: AssignmentKind) -> Self {
impl AssignmentScopes {
fn new(initial: AssignmentScope) -> Self {
match initial {
AssignmentKind::InRootScope => AssignmentKinds::AllInRootScope,
AssignmentKind::InFunction => AssignmentKinds::AllInFunction,
AssignmentScope::ModuleEval => AssignmentScopes::AllInModuleEvalScope,
AssignmentScope::Function => AssignmentScopes::AllInFunction,
}
}
fn merge(self, other: AssignmentKind) -> Self {
fn merge(self, other: AssignmentScope) -> Self {
// If the other assignment kind is the same as the current one, return the current one.
if self == Self::new(other) {
self
} else {
AssignmentKinds::Mixed
AssignmentScopes::Mixed
}
}
}
......@@ -287,18 +287,18 @@ impl AssignmentKinds {
pub struct VarMeta {
pub value: JsValue,
// Tracks the locations where this was assigned to:
// - [AssignmentKinds::AllInRootScope] if it was assigned only in the root scope
// - [AssignmentKinds::AllInFunction] if it was assigned in function scopes
// - [AssignmentKinds::Mixed] if it was assigned in both
// - [AssignmentScopes::AllInModuleEvalScope] if it was assigned only in the root scope
// - [AssignmentScopes::AllInFunction] if it was assigned in function scopes
// - [AssignmentScopes::Mixed] if it was assigned in both
// This is used to track the _liveness_ of exports.
pub assignment_kinds: AssignmentKinds,
pub assignment_scopes: AssignmentScopes,
}
impl VarMeta {
pub fn new(value: JsValue, kind: AssignmentKind) -> Self {
pub fn new(value: JsValue, kind: AssignmentScope) -> Self {
Self {
value,
assignment_kinds: AssignmentKinds::new(kind),
assignment_scopes: AssignmentScopes::new(kind),
}
}
......@@ -306,9 +306,9 @@ impl VarMeta {
self.value.normalize();
}
fn add_alt(&mut self, value: JsValue, kind: AssignmentKind) {
fn add_alt(&mut self, value: JsValue, kind: AssignmentScope) {
self.value.add_alt(value);
self.assignment_kinds = self.assignment_kinds.merge(kind);
self.assignment_scopes = self.assignment_scopes.merge(kind);
}
}
......@@ -1032,9 +1032,9 @@ impl Analyzer<'_> {
}
let kind = if self.is_in_fn() {
AssignmentKind::InFunction
AssignmentScope::Function
} else {
AssignmentKind::InRootScope
AssignmentScope::ModuleEval
};
if let Some(prev) = self.data.values.get_mut(&id) {
prev.add_alt(value, kind);
......
......@@ -4072,7 +4072,7 @@ mod tests {
linker::link,
};
use crate::analyzer::{
graph::{AssignmentKinds, VarMeta},
graph::{AssignmentScopes, VarMeta},
imports::ImportAttributes,
};
......@@ -4135,13 +4135,17 @@ mod tests {
named_values.sort_by(|a, b| a.0.cmp(&b.0));
fn explain_all<'a>(
values: impl IntoIterator<Item = (&'a String, &'a JsValue, Option<AssignmentKinds>)>,
values: impl IntoIterator<
Item = (&'a String, &'a JsValue, Option<AssignmentScopes>),
>,
) -> String {
values
.into_iter()
.map(|(id, value, assignment_kinds)| {
let non_root_assignments = match assignment_kinds {
Some(AssignmentKinds::AllInRootScope) => " (const after eval)",
.map(|(id, value, assignment_scopes)| {
let non_root_assignments = match assignment_scopes {
Some(AssignmentScopes::AllInModuleEvalScope) => {
" (const after eval)"
}
_ => "",
};
let (explainer, hints) = value.explain(10, 5);
......@@ -4161,7 +4165,7 @@ mod tests {
"{:#?}",
named_values
.iter()
.map(|(name, (_, VarMeta {value, ..}))| (name, value))
.map(|(name, (_, VarMeta { value, .. }))| (name, value))
.collect::<Vec<_>>()
))
.compare_to_file(&graph_snapshot_path)
......@@ -4174,10 +4178,10 @@ mod tests {
_,
VarMeta {
value,
assignment_kinds,
assignment_scopes,
},
),
)| (name, value, Some(*assignment_kinds)),
)| (name, value, Some(*assignment_scopes)),
)))
.compare_to_file(&graph_explained_snapshot_path)
.unwrap();
......
......@@ -3227,6 +3227,27 @@ impl<'a> ModuleReferencesVisitor<'a> {
}
}
impl<'a> ModuleReferencesVisitor<'a> {
/// Returns true if the given export identifier is considered "live". This means it might
/// change values after module evaluation.
fn is_export_ident_live(&self, id: &Ident) -> bool {
if let Some(crate::analyzer::graph::VarMeta {
value: _,
assignment_scopes: assignment_kinds,
}) = self.var_graph.values.get(&id.to_id())
{
// For now, assume all exports are live.
*assignment_kinds != crate::analyzer::graph::AssignmentScopes::AllInModuleEvalScope
} else {
// If we haven't computed a value for it, that means it might be
// A free variable
// an imported variable
// In those cases, we just assume that the value is live since we don't know anything
true
}
}
}
fn as_parent_path(ast_path: &AstNodePath<AstParentNodeRef<'_>>) -> Vec<AstParentKind> {
ast_path.iter().map(|n| n.kind()).collect()
}
......
error - [transform] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js Error evaluating Node.js code
Error: Cannot find module './side-effects/reexport-internal.js'
[at WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/output/40cd4_turbopack_async-modules_async-reexport-side-effects-split_input_eae6bde3._.js:6:15]
[at {module evaluation} (WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/output/40cd4_turbopack_async-modules_async-reexport-side-effects-split_input_eae6bde3._.js:9:3)]
at instantiateModule (turbopack:///[turbopack]/nodejs/runtime.ts:228:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/output/[turbopack]_runtime.js:713:9]
at getOrInstantiateModuleFromParent (turbopack:///[turbopack]/nodejs/runtime.ts:261:10) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/output/[turbopack]_runtime.js:736:12]
at Context.esmImport [as i] (turbopack:///[turbopack]/shared/runtime-utils.ts:347:18) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/output/[turbopack]_runtime.js:228:20]
at <unknown> (turbopack/crates/turbopack-tests/js/jest-entry.ts:68:1) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/output/[root-of-the-server]__4a7dfbc1._.js:85:16]
64 | jestResult,
65 | uncaughtExceptions,
66 | unhandledRejections,
67 | }
| v
68 + }
| ^
69 |
[at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
at async run (turbopack/crates/turbopack-tests/js/jest-entry.ts:40:3) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/output/[root-of-the-server]__4a7dfbc1._.js:49:5]
36 |
37 | export default async function run() {
38 | setupGlobals()
39 |
| v
40 + await import('TESTS')
| ^
41 |
42 | let jestResult = await jest.run()
43 | // Jest test results can contain references to arbitrary objects.
44 | // Defensively remove circular references to avoid breaking our serialization protocol.
at async run (turbopack:///[turbopack-node]/ipc/evaluate.ts:92:23) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/output/[turbopack-node]__0ef06507._.js:407:31]
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-internal-test.js:1:0 Module not found: Can't resolve './reexport-internal.js'
+ v----------------------------------------------v
1 + import { a, b, c } from './reexport-internal.js'
+ ^----------------------------------------------^
2 |
3 | export default {
4 | a,
5 | b,
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './reexport-internal.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-internal-test.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-internal-test.js
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js:11:4 Module not found: Can't resolve './side-effect-free/reexport-internal.js'
7 | (await import('./side-effects/reexport-internal-test.js')).default,
8 | 'async module with side effects via require': () =>
9 | require('./side-effects/reexport-internal.js'),
10 | 'async module flagged side-effect-free via dynamic import': () =>
+ v-----------------------------------------------v
11 + import('./side-effect-free/reexport-internal.js'),
+ ^-----------------------------------------------^
12 | 'async module flagged side-effect-free via esm import': async () =>
13 | (await import('./side-effect-free/reexport-internal-test.js')).default,
14 | 'async module flagged side-effect-free via require': () =>
15 | require('./side-effect-free/reexport-internal.js'),
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './side-effect-free/reexport-internal.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
| Type of request: EcmaScript Modules request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-external-test.js:1:0 Module not found: Can't resolve './reexport-external.js'
+ v----------------------------------------------v
1 + import { a, b, c } from './reexport-external.js'
+ ^----------------------------------------------^
2 |
3 | export default {
4 | a,
5 | b,
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './reexport-external.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-external-test.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-external-test.js
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js:15:4 Module not found: Can't resolve './side-effect-free/reexport-internal.js'
11 | import('./side-effect-free/reexport-internal.js'),
12 | 'async module flagged side-effect-free via esm import': async () =>
13 | (await import('./side-effect-free/reexport-internal-test.js')).default,
14 | 'async module flagged side-effect-free via require': () =>
+ v------------------------------------------------v
15 + require('./side-effect-free/reexport-internal.js'),
+ ^------------------------------------------------^
16 | 'module with externals with side effects via dynamic import': () =>
17 | import('./side-effects/reexport-external.js'),
18 | 'module with externals with side effects via esm import': async () =>
19 | (await import('./side-effects/reexport-external-test.js')).default,
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './side-effect-free/reexport-internal.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js:5:4 Module not found: Can't resolve './side-effects/reexport-internal.js'
1 | import { a as a1, b as b1, c as c1 } from './side-effects/reexport-internal.js'
2 |
3 | const cases = {
4 | 'async module with side effects via dynamic import': () =>
+ v-------------------------------------------v
5 + import('./side-effects/reexport-internal.js'),
+ ^-------------------------------------------^
6 | 'async module with side effects via esm import': async () =>
7 | (await import('./side-effects/reexport-internal-test.js')).default,
8 | 'async module with side effects via require': () =>
9 | require('./side-effects/reexport-internal.js'),
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './side-effects/reexport-internal.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
| Type of request: EcmaScript Modules request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-external-test.js:1:0 Module not found: Can't resolve './reexport-external.js'
+ v----------------------------------------------v
1 + import { a, b, c } from './reexport-external.js'
+ ^----------------------------------------------^
2 |
3 | export default {
4 | a,
5 | b,
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './reexport-external.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-external-test.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-external-test.js
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js:23:4 Module not found: Can't resolve './side-effect-free/reexport-external.js'
19 | (await import('./side-effects/reexport-external-test.js')).default,
20 | 'module with externals with side effects via require': () =>
21 | require('./side-effects/reexport-external.js'),
22 | 'module with externals flagged side-effect-free via dynamic import': () =>
+ v-----------------------------------------------v
23 + import('./side-effect-free/reexport-external.js'),
+ ^-----------------------------------------------^
24 | 'module with externals flagged side-effect-free via esm import': async () =>
25 | (await import('./side-effect-free/reexport-external-test.js')).default,
26 | 'module with externals flagged side-effect-free via require': () =>
27 | require('./side-effect-free/reexport-external.js'),
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './side-effect-free/reexport-external.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
| Type of request: EcmaScript Modules request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js:9:4 Module not found: Can't resolve './side-effects/reexport-internal.js'
5 | import('./side-effects/reexport-internal.js'),
6 | 'async module with side effects via esm import': async () =>
7 | (await import('./side-effects/reexport-internal-test.js')).default,
8 | 'async module with side effects via require': () =>
+ v--------------------------------------------v
9 + require('./side-effects/reexport-internal.js'),
+ ^--------------------------------------------^
10 | 'async module flagged side-effect-free via dynamic import': () =>
11 | import('./side-effect-free/reexport-internal.js'),
12 | 'async module flagged side-effect-free via esm import': async () =>
13 | (await import('./side-effect-free/reexport-internal-test.js')).default,
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './side-effects/reexport-internal.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js:1:0 Module not found: Can't resolve './side-effects/reexport-internal.js'
+ v-----------------------------------------------------------------------------v
1 + import { a as a1, b as b1, c as c1 } from './side-effects/reexport-internal.js'
+ ^-----------------------------------------------------------------------------^
2 |
3 | const cases = {
4 | 'async module with side effects via dynamic import': () =>
5 | import('./side-effects/reexport-internal.js'),
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './side-effects/reexport-internal.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
| Type of request: EcmaScript Modules (part) request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js:17:4 Module not found: Can't resolve './side-effects/reexport-external.js'
13 | (await import('./side-effect-free/reexport-internal-test.js')).default,
14 | 'async module flagged side-effect-free via require': () =>
15 | require('./side-effect-free/reexport-internal.js'),
16 | 'module with externals with side effects via dynamic import': () =>
+ v-------------------------------------------v
17 + import('./side-effects/reexport-external.js'),
+ ^-------------------------------------------^
18 | 'module with externals with side effects via esm import': async () =>
19 | (await import('./side-effects/reexport-external-test.js')).default,
20 | 'module with externals with side effects via require': () =>
21 | require('./side-effects/reexport-external.js'),
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './side-effects/reexport-external.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
| Type of request: EcmaScript Modules request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js:27:4 Module not found: Can't resolve './side-effect-free/reexport-external.js'
23 | import('./side-effect-free/reexport-external.js'),
24 | 'module with externals flagged side-effect-free via esm import': async () =>
25 | (await import('./side-effect-free/reexport-external-test.js')).default,
26 | 'module with externals flagged side-effect-free via require': () =>
+ v------------------------------------------------v
27 + require('./side-effect-free/reexport-external.js'),
+ ^------------------------------------------------^
28 | }
29 |
30 | for (const [name, fn] of Object.entries(cases)) {
31 | it(`should reexport a ${name} with side effects optimization`, async () => {
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './side-effect-free/reexport-external.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-internal-test.js:1:0 Module not found: Can't resolve './reexport-internal.js'
+ v----------------------------------------------v
1 + import { a, b, c } from './reexport-internal.js'
+ ^----------------------------------------------^
2 |
3 | export default {
4 | a,
5 | b,
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './reexport-internal.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-internal-test.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-internal-test.js
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effect-free/reexport-external-test.js:1:0 Module not found: Can't resolve './reexport-external.js'
+ v----------------------------------------------v
1 + import { a, b, c } from './reexport-external.js'
+ ^----------------------------------------------^
2 |
3 | export default {
4 | a,
5 | b,
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './reexport-external.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effect-free/reexport-external-test.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effect-free/reexport-external-test.js
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js:21:4 Module not found: Can't resolve './side-effects/reexport-external.js'
17 | import('./side-effects/reexport-external.js'),
18 | 'module with externals with side effects via esm import': async () =>
19 | (await import('./side-effects/reexport-external-test.js')).default,
20 | 'module with externals with side effects via require': () =>
+ v--------------------------------------------v
21 + require('./side-effects/reexport-external.js'),
+ ^--------------------------------------------^
22 | 'module with externals flagged side-effect-free via dynamic import': () =>
23 | import('./side-effect-free/reexport-external.js'),
24 | 'module with externals flagged side-effect-free via esm import': async () =>
25 | (await import('./side-effect-free/reexport-external-test.js')).default,
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './side-effects/reexport-external.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effect-free/reexport-internal-test.js:1:0 Module not found: Can't resolve './reexport-internal.js'
+ v----------------------------------------------v
1 + import { a, b, c } from './reexport-internal.js'
+ ^----------------------------------------------^
2 |
3 | export default {
4 | a,
5 | b,
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './reexport-internal.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effect-free/reexport-internal-test.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effect-free/reexport-internal-test.js
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
\ No newline at end of file
error - [transform] /turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/input/index.js Error evaluating Node.js code
Error: Cannot find module './math'
at <unknown> (turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/input/index.js:1:7) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/output/780ce_turbopack-tests_tests_execution_turbopack_wasm_simple_input_index_2fe2b888.js:5:15]
| v
1 + const mathAsyncModule = require('./math')
| ^
2 |
3 | it('should handle wasm imports', async () => {
4 | // math.js is an async module, so we require it and await inside this function to make sure the entrypoint isn't async.
5 | const {
at {module evaluation} (turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/input/index.js:1:7) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/output/780ce_turbopack-tests_tests_execution_turbopack_wasm_simple_input_index_2fe2b888.js:8:3]
| v
1 + const mathAsyncModule = require('./math')
| ^
2 |
3 | it('should handle wasm imports', async () => {
4 | // math.js is an async module, so we require it and await inside this function to make sure the entrypoint isn't async.
5 | const {
at instantiateModule (turbopack:///[turbopack]/nodejs/runtime.ts:228:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/output/[turbopack]_runtime.js:713:9]
at getOrInstantiateModuleFromParent (turbopack:///[turbopack]/nodejs/runtime.ts:261:10) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/output/[turbopack]_runtime.js:736:12]
at Context.esmImport [as i] (turbopack:///[turbopack]/shared/runtime-utils.ts:347:18) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/output/[turbopack]_runtime.js:228:20]
at <unknown> (turbopack/crates/turbopack-tests/js/jest-entry.ts:68:1) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/output/[root-of-the-server]__c8f2ec0e._.js:85:16]
64 | jestResult,
65 | uncaughtExceptions,
66 | unhandledRejections,
67 | }
| v
68 + }
| ^
69 |
[at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
at async run (turbopack/crates/turbopack-tests/js/jest-entry.ts:40:3) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/output/[root-of-the-server]__c8f2ec0e._.js:49:5]
at async run (turbopack:///[turbopack-node]/ipc/evaluate.ts:92:23) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/output/[turbopack-node]__96f6d6a7._.js:407:31]
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/input/index.js:1:24 Module not found: Can't resolve './math'
+ v---------------v
1 + const mathAsyncModule = require('./math')
+ ^---------------^
2 |
3 | it('should handle wasm imports', async () => {
4 | // math.js is an async module, so we require it and await inside this function to make sure the entrypoint isn't async.
5 | const {
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './math'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/root-ref.js:1:0 Module not found: Can't resolve './root'
+ v---------------------------v
1 + export { test } from './root'
+ ^---------------------------^
2 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './root'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/root-ref.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/root-ref.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/root-ref.js:1:0 Module not found: Can't resolve './root'
+ v---------------------------v
1 + export { test } from './root'
+ ^---------------------------^
2 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './root'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/root-ref.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/root-ref.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/external.js:1:0 Module not found: Can't resolve './root'
+ v--------------------------------------------v
1 + import { a, b, c, default as d } from './root'
+ ^--------------------------------------------^
2 |
3 | expect(a()).toBe('a')
4 | if (process.env.NODE_ENV === 'production') {
5 | // These two cases only work correctly when scope hoisted
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './root'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/external.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/external.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/external-ref.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/external.js:1:0 Module not found: Can't resolve './root'
+ v--------------------------------------------v
1 + import { a, b, c, default as d } from './root'
+ ^--------------------------------------------^
2 |
3 | expect(a()).toBe('a')
4 | if (process.env.NODE_ENV === 'production') {
5 | // These two cases only work correctly when scope hoisted
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './root'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/external.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/external.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/external-ref.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/index.js
\ No newline at end of file
error - [transform] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/input/index.js Error evaluating Node.js code
Error: Cannot find module './module1'
[at WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/output/bf321_tests_execution_webpack_scope-hoisting_export-namespace_input_index_68dd9e33.js:6:15]
[at {module evaluation} (WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/output/bf321_tests_execution_webpack_scope-hoisting_export-namespace_input_index_68dd9e33.js:9:3)]
at instantiateModule (turbopack:///[turbopack]/nodejs/runtime.ts:228:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/output/[turbopack]_runtime.js:713:9]
at getOrInstantiateModuleFromParent (turbopack:///[turbopack]/nodejs/runtime.ts:261:10) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/output/[turbopack]_runtime.js:736:12]
at Context.esmImport [as i] (turbopack:///[turbopack]/shared/runtime-utils.ts:347:18) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/output/[turbopack]_runtime.js:228:20]
at <unknown> (turbopack/crates/turbopack-tests/js/jest-entry.ts:68:1) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/output/[root-of-the-server]__03b61751._.js:85:16]
64 | jestResult,
65 | uncaughtExceptions,
66 | unhandledRejections,
67 | }
| v
68 + }
| ^
69 |
[at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
at async run (turbopack/crates/turbopack-tests/js/jest-entry.ts:40:3) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/output/[root-of-the-server]__03b61751._.js:49:5]
36 |
37 | export default async function run() {
38 | setupGlobals()
39 |
| v
40 + await import('TESTS')
| ^
41 |
42 | let jestResult = await jest.run()
43 | // Jest test results can contain references to arbitrary objects.
44 | // Defensively remove circular references to avoid breaking our serialization protocol.
at async run (turbopack:///[turbopack-node]/ipc/evaluate.ts:92:23) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/output/[turbopack-node]__d2c62f07._.js:407:31]
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/input/index.js:1:0 Module not found: Can't resolve './module1'
+ v-----------------------------------v
1 + import { ns as ns1 } from './module1'
+ ^-----------------------------------^
2 | const ns2 = require('./module2').ns
3 |
4 | it('should allow to export a namespace object (concated)', function () {
5 | expect(ns1).toEqual(
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './module1'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/input/index.js
| Type of request: EcmaScript Modules (part) request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/input/index.js:2:12 Module not found: Can't resolve './module2'
1 | import { ns as ns1 } from './module1'
+ v------------------v
2 + const ns2 = require('./module2').ns
+ ^------------------^
3 |
4 | it('should allow to export a namespace object (concated)', function () {
5 | expect(ns1).toEqual(
6 | nsObj({
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './module2'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/input/index.js:1:0 Module not found: Can't resolve './module1'
+ v-----------------------------------v
1 + import { ns as ns1 } from './module1'
+ ^-----------------------------------^
2 | const ns2 = require('./module2').ns
3 |
4 | it('should allow to export a namespace object (concated)', function () {
5 | expect(ns1).toEqual(
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './module1'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/input/index.js
| Type of request: EcmaScript Modules (part) request
|
\ No newline at end of file
error - [transform] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/index.js Error evaluating Node.js code
Error: Cannot find module './root2'
[at WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/output/bf321_tests_execution_webpack_scope-hoisting_external-root_input_49f3ddd3._.js:11:15]
[at {module evaluation} (WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/output/bf321_tests_execution_webpack_scope-hoisting_external-root_input_49f3ddd3._.js:14:3)]
at instantiateModule (turbopack:///[turbopack]/nodejs/runtime.ts:228:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/output/[turbopack]_runtime.js:713:9]
at getOrInstantiateModuleFromParent (turbopack:///[turbopack]/nodejs/runtime.ts:261:10) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/output/[turbopack]_runtime.js:736:12]
at Context.esmImport [as i] (turbopack:///[turbopack]/shared/runtime-utils.ts:347:18) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/output/[turbopack]_runtime.js:228:20]
at <unknown> (turbopack/crates/turbopack-tests/js/jest-entry.ts:68:1) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/output/[root-of-the-server]__64abd862._.js:85:16]
64 | jestResult,
65 | uncaughtExceptions,
66 | unhandledRejections,
67 | }
| v
68 + }
| ^
69 |
[at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
at async run (turbopack/crates/turbopack-tests/js/jest-entry.ts:40:3) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/output/[root-of-the-server]__64abd862._.js:49:5]
36 |
37 | export default async function run() {
38 | setupGlobals()
39 |
| v
40 + await import('TESTS')
| ^
41 |
42 | let jestResult = await jest.run()
43 | // Jest test results can contain references to arbitrary objects.
44 | // Defensively remove circular references to avoid breaking our serialization protocol.
at async run (turbopack:///[turbopack-node]/ipc/evaluate.ts:92:23) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/output/[turbopack-node]__100127a5._.js:407:31]
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/chunk.js:1:0 Module not found: Can't resolve './root2'
+ v--------------------------v
1 + import result from './root2'
+ ^--------------------------^
2 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './root2'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/chunk.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/chunk.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/index.js:3:0 Module not found: Can't resolve './root2'
1 | import './module'
2 | import f, { ns } from './root2'
+ v---------------------------v
3 + import * as r2 from './root2'
+ ^---------------------------^
4 |
5 | it('should be able to import a secondary root', () => {
6 | expect(f()).toBe('ok')
7 | expect(f.x()).toBe('ok')
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './root2'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/index.js
| Type of request: EcmaScript Modules (part) request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/index.js:3:0 Module not found: Can't resolve './root2'
1 | import './module'
2 | import f, { ns } from './root2'
+ v---------------------------v
3 + import * as r2 from './root2'
+ ^---------------------------^
4 |
5 | it('should be able to import a secondary root', () => {
6 | expect(f()).toBe('ok')
7 | expect(f.x()).toBe('ok')
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './root2'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/index.js
| Type of request: EcmaScript Modules (part) request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/index.js:2:0 Module not found: Can't resolve './root2'
1 | import './module'
+ v-----------------------------v
2 + import f, { ns } from './root2'
+ ^-----------------------------^
3 | import * as r2 from './root2'
4 |
5 | it('should be able to import a secondary root', () => {
6 | expect(f()).toBe('ok')
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './root2'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/index.js
| Type of request: EcmaScript Modules (part) request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/index.js:2:0 Module not found: Can't resolve './root2'
1 | import './module'
+ v-----------------------------v
2 + import f, { ns } from './root2'
+ ^-----------------------------^
3 | import * as r2 from './root2'
4 |
5 | it('should be able to import a secondary root', () => {
6 | expect(f()).toBe('ok')
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './root2'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/index.js
| Type of request: EcmaScript Modules (part) request
|
\ No newline at end of file
error - [transform] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/input/index.js Error evaluating Node.js code
Error: Cannot find module './c'
at <unknown> (turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/input/index.js:1:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/output/bf321_tests_execution_webpack_scope-hoisting_indirect-reexport_input_index_fe986ad4.js:5:15]
| v
1 + var c = require('./c')
| ^
2 |
3 | it('should have the correct values', function () {
4 | expect(c.named).toBe('named')
5 | })
at {module evaluation} (turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/input/index.js:1:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/output/bf321_tests_execution_webpack_scope-hoisting_indirect-reexport_input_index_fe986ad4.js:8:3]
| v
1 + var c = require('./c')
| ^
2 |
3 | it('should have the correct values', function () {
4 | expect(c.named).toBe('named')
5 | })
at instantiateModule (turbopack:///[turbopack]/nodejs/runtime.ts:228:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/output/[turbopack]_runtime.js:713:9]
at getOrInstantiateModuleFromParent (turbopack:///[turbopack]/nodejs/runtime.ts:261:10) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/output/[turbopack]_runtime.js:736:12]
at Context.esmImport [as i] (turbopack:///[turbopack]/shared/runtime-utils.ts:347:18) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/output/[turbopack]_runtime.js:228:20]
at <unknown> (turbopack/crates/turbopack-tests/js/jest-entry.ts:68:1) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/output/[root-of-the-server]__94ad0a74._.js:85:16]
64 | jestResult,
65 | uncaughtExceptions,
66 | unhandledRejections,
67 | }
| v
68 + }
| ^
69 |
[at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
at async run (turbopack/crates/turbopack-tests/js/jest-entry.ts:40:3) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/output/[root-of-the-server]__94ad0a74._.js:49:5]
at async run (turbopack:///[turbopack-node]/ipc/evaluate.ts:92:23) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/output/[turbopack-node]__62659473._.js:407:31]
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/input/index.js:1:8 Module not found: Can't resolve './c'
+ v------------v
1 + var c = require('./c')
+ ^------------^
2 |
3 | it('should have the correct values', function () {
4 | expect(c.named).toBe('named')
5 | })
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './c'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/a.js:1:0 Module not found: Can't resolve './cts'
+ v---------------------v
1 + import cts from './cts'
+ ^---------------------^
2 | export default cts.connectData(function () {})
3 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './cts'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/a.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/a.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/main.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/b.js:1:0 Module not found: Can't resolve './cts'
+ v---------------------v
1 + import cts from './cts'
+ ^---------------------^
2 | export function b() {}
3 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './cts'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/b.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/b.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/a.js:1:0 Module not found: Can't resolve './cts'
+ v---------------------v
1 + import cts from './cts'
+ ^---------------------^
2 | export default cts.connectData(function () {})
3 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './cts'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/a.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/a.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/main.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/main.js:1:0 Module not found: Can't resolve './cts'
+ v---------------------v
1 + import cts from './cts'
+ ^---------------------^
2 | import a from './a'
3 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './cts'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/main.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/main.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/index.js
\ No newline at end of file
error - [transform] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/input/index.js Error evaluating Node.js code
Error: Cannot find module './src/index.js'
at <unknown> (turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/input/index.js:1:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/output/bf321_tests_execution_webpack_scope-hoisting_issue-5020-minimal_input_index_0002c85e.js:5:15]
| v
1 + var testData = require('./src/index.js')
| ^
2 |
3 | it('should export the correct values', function () {
4 | expect(testData).toEqual(
5 | nsObj({
at {module evaluation} (turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/input/index.js:1:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/output/bf321_tests_execution_webpack_scope-hoisting_issue-5020-minimal_input_index_0002c85e.js:8:3]
| v
1 + var testData = require('./src/index.js')
| ^
2 |
3 | it('should export the correct values', function () {
4 | expect(testData).toEqual(
5 | nsObj({
at instantiateModule (turbopack:///[turbopack]/nodejs/runtime.ts:228:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/output/[turbopack]_runtime.js:713:9]
at getOrInstantiateModuleFromParent (turbopack:///[turbopack]/nodejs/runtime.ts:261:10) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/output/[turbopack]_runtime.js:736:12]
at Context.esmImport [as i] (turbopack:///[turbopack]/shared/runtime-utils.ts:347:18) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/output/[turbopack]_runtime.js:228:20]
at <unknown> (turbopack/crates/turbopack-tests/js/jest-entry.ts:68:1) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/output/[root-of-the-server]__361e074f._.js:85:16]
64 | jestResult,
65 | uncaughtExceptions,
66 | unhandledRejections,
67 | }
| v
68 + }
| ^
69 |
[at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
at async run (turbopack/crates/turbopack-tests/js/jest-entry.ts:40:3) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/output/[root-of-the-server]__361e074f._.js:49:5]
at async run (turbopack:///[turbopack-node]/ipc/evaluate.ts:92:23) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/output/[turbopack-node]__521a3541._.js:407:31]
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/input/index.js:1:15 Module not found: Can't resolve './src/index.js'
+ v-----------------------v
1 + var testData = require('./src/index.js')
+ ^-----------------------^
2 |
3 | it('should export the correct values', function () {
4 | expect(testData).toEqual(
5 | nsObj({
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './src/index.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [transform] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/input/index.js Error evaluating Node.js code
Error: Cannot find module './src/index.js'
at <unknown> (turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/input/index.js:1:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/output/bf321_tests_execution_webpack_scope-hoisting_issue-5020_input_index_3d26eb6c.js:5:15]
| v
1 + var testData = require('./src/index.js')
| ^
2 |
3 | it('should export the correct values', function () {
4 | expect(testData).toEqual(
5 | nsObj({
at {module evaluation} (turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/input/index.js:1:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/output/bf321_tests_execution_webpack_scope-hoisting_issue-5020_input_index_3d26eb6c.js:8:3]
| v
1 + var testData = require('./src/index.js')
| ^
2 |
3 | it('should export the correct values', function () {
4 | expect(testData).toEqual(
5 | nsObj({
at instantiateModule (turbopack:///[turbopack]/nodejs/runtime.ts:228:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/output/[turbopack]_runtime.js:713:9]
at getOrInstantiateModuleFromParent (turbopack:///[turbopack]/nodejs/runtime.ts:261:10) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/output/[turbopack]_runtime.js:736:12]
at Context.esmImport [as i] (turbopack:///[turbopack]/shared/runtime-utils.ts:347:18) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/output/[turbopack]_runtime.js:228:20]
at <unknown> (turbopack/crates/turbopack-tests/js/jest-entry.ts:68:1) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/output/[root-of-the-server]__46a5051f._.js:85:16]
64 | jestResult,
65 | uncaughtExceptions,
66 | unhandledRejections,
67 | }
| v
68 + }
| ^
69 |
[at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
at async run (turbopack/crates/turbopack-tests/js/jest-entry.ts:40:3) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/output/[root-of-the-server]__46a5051f._.js:49:5]
at async run (turbopack:///[turbopack-node]/ipc/evaluate.ts:92:23) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/output/[turbopack-node]__01ddeb9a._.js:407:31]
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/input/index.js:1:15 Module not found: Can't resolve './src/index.js'
+ v-----------------------v
1 + var testData = require('./src/index.js')
+ ^-----------------------^
2 |
3 | it('should export the correct values', function () {
4 | expect(testData).toEqual(
5 | nsObj({
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './src/index.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [transform] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/input/index.js Error evaluating Node.js code
Error: Cannot find module './reexport'
[at WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/output/bf321_tests_execution_webpack_scope-hoisting_issue-5443_input_index_b765d7b3.js:6:15]
[at {module evaluation} (WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/output/bf321_tests_execution_webpack_scope-hoisting_issue-5443_input_index_b765d7b3.js:9:3)]
at instantiateModule (turbopack:///[turbopack]/nodejs/runtime.ts:228:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/output/[turbopack]_runtime.js:713:9]
at getOrInstantiateModuleFromParent (turbopack:///[turbopack]/nodejs/runtime.ts:261:10) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/output/[turbopack]_runtime.js:736:12]
at Context.esmImport [as i] (turbopack:///[turbopack]/shared/runtime-utils.ts:347:18) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/output/[turbopack]_runtime.js:228:20]
at <unknown> (turbopack/crates/turbopack-tests/js/jest-entry.ts:68:1) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/output/[root-of-the-server]__024aa8f5._.js:85:16]
64 | jestResult,
65 | uncaughtExceptions,
66 | unhandledRejections,
67 | }
| v
68 + }
| ^
69 |
[at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
at async run (turbopack/crates/turbopack-tests/js/jest-entry.ts:40:3) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/output/[root-of-the-server]__024aa8f5._.js:49:5]
36 |
37 | export default async function run() {
38 | setupGlobals()
39 |
| v
40 + await import('TESTS')
| ^
41 |
42 | let jestResult = await jest.run()
43 | // Jest test results can contain references to arbitrary objects.
44 | // Defensively remove circular references to avoid breaking our serialization protocol.
at async run (turbopack:///[turbopack-node]/ipc/evaluate.ts:92:23) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/output/[turbopack-node]__d61da3c3._.js:407:31]
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/input/index.js:1:0 Module not found: Can't resolve './reexport'
+ v---------------------------------v
1 + import { module } from './reexport'
+ ^---------------------------------^
2 |
3 | it('should have the correct values', function () {
4 | expect(module).toEqual(
5 | nsObj({
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './reexport'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/input/index.js
| Type of request: EcmaScript Modules (part) request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/input/index.js:1:0 Module not found: Can't resolve './reexport'
+ v---------------------------------v
1 + import { module } from './reexport'
+ ^---------------------------------^
2 |
3 | it('should have the correct values', function () {
4 | expect(module).toEqual(
5 | nsObj({
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './reexport'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/input/index.js
| Type of request: EcmaScript Modules (part) request
|
\ No newline at end of file
error - [transform] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/input/index.js Error evaluating Node.js code
Error: Cannot find module './json.js'
[at WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/output/bf321_tests_execution_webpack_scope-hoisting_json-reexport-6700_input_index_bb546557.js:6:15]
[at {module evaluation} (WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/output/bf321_tests_execution_webpack_scope-hoisting_json-reexport-6700_input_index_bb546557.js:9:3)]
at instantiateModule (turbopack:///[turbopack]/nodejs/runtime.ts:228:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/output/[turbopack]_runtime.js:713:9]
at getOrInstantiateModuleFromParent (turbopack:///[turbopack]/nodejs/runtime.ts:261:10) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/output/[turbopack]_runtime.js:736:12]
at Context.esmImport [as i] (turbopack:///[turbopack]/shared/runtime-utils.ts:347:18) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/output/[turbopack]_runtime.js:228:20]
at <unknown> (turbopack/crates/turbopack-tests/js/jest-entry.ts:68:1) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/output/[root-of-the-server]__aae8294c._.js:85:16]
64 | jestResult,
65 | uncaughtExceptions,
66 | unhandledRejections,
67 | }
| v
68 + }
| ^
69 |
[at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
at async run (turbopack/crates/turbopack-tests/js/jest-entry.ts:40:3) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/output/[root-of-the-server]__aae8294c._.js:49:5]
36 |
37 | export default async function run() {
38 | setupGlobals()
39 |
| v
40 + await import('TESTS')
| ^
41 |
42 | let jestResult = await jest.run()
43 | // Jest test results can contain references to arbitrary objects.
44 | // Defensively remove circular references to avoid breaking our serialization protocol.
at async run (turbopack:///[turbopack-node]/ipc/evaluate.ts:92:23) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/output/[turbopack-node]__3149ff46._.js:407:31]
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/input/index.js:1:0 Module not found: Can't resolve './json.js'
+ v--------------------------------------v
1 + import { a, b, aa, bb } from './json.js'
+ ^--------------------------------------^
2 |
3 | it('should reexport json data correctly', () => {
4 | expect(aa).toEqual({ a: 'A' })
5 | expect(bb).toEqual({ b: 'B' })
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './json.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/input/index.js
| Type of request: EcmaScript Modules (part) request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/input/index.js:1:0 Module not found: Can't resolve './json.js'
+ v--------------------------------------v
1 + import { a, b, aa, bb } from './json.js'
+ ^--------------------------------------^
2 |
3 | it('should reexport json data correctly', () => {
4 | expect(aa).toEqual({ a: 'A' })
5 | expect(bb).toEqual({ b: 'B' })
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './json.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/input/index.js
| Type of request: EcmaScript Modules (part) request
|
\ No newline at end of file
error - [transform] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/input/index.js Error evaluating Node.js code
Error: Cannot find module './module'
[at WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/output/bf321_tests_execution_webpack_scope-hoisting_orphan_input_index_848c372c.js:10:15]
[at {module evaluation} (WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/output/bf321_tests_execution_webpack_scope-hoisting_orphan_input_index_848c372c.js:13:3)]
at instantiateModule (turbopack:///[turbopack]/nodejs/runtime.ts:228:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/output/[turbopack]_runtime.js:713:9]
at getOrInstantiateModuleFromParent (turbopack:///[turbopack]/nodejs/runtime.ts:261:10) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/output/[turbopack]_runtime.js:736:12]
at Context.esmImport [as i] (turbopack:///[turbopack]/shared/runtime-utils.ts:347:18) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/output/[turbopack]_runtime.js:228:20]
at <unknown> (turbopack/crates/turbopack-tests/js/jest-entry.ts:68:1) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/output/[root-of-the-server]__75b5805a._.js:85:16]
64 | jestResult,
65 | uncaughtExceptions,
66 | unhandledRejections,
67 | }
| v
68 + }
| ^
69 |
[at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
at async run (turbopack/crates/turbopack-tests/js/jest-entry.ts:40:3) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/output/[root-of-the-server]__75b5805a._.js:49:5]
36 |
37 | export default async function run() {
38 | setupGlobals()
39 |
| v
40 + await import('TESTS')
| ^
41 |
42 | let jestResult = await jest.run()
43 | // Jest test results can contain references to arbitrary objects.
44 | // Defensively remove circular references to avoid breaking our serialization protocol.
at async run (turbopack:///[turbopack-node]/ipc/evaluate.ts:92:23) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/output/[turbopack-node]__ffb5bd50._.js:407:31]
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/input/node_modules/pkg/index.js:1:0 Module not found: Can't resolve './module'
+ v----------------------------------v
1 + import { y as used } from './module'
+ ^----------------------------------^
2 | import unused from './b'
3 |
4 | export default used
5 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './module'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/input/node_modules/pkg/index.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/input/node_modules/pkg/index.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/renaming-4967/input/index.js:2:9 Module not found: Can't resolve './module'
1 | it('should check existing variables when renaming', function () {
+ v-----------------v
2 + expect(require('./module').d.x()).toBe('ok')
+ ^-----------------^
3 | expect(require('./module').c.a()).toBe('ok')
4 | expect(require('./module').test()).toBe('ok')
5 | })
6 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './module'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/renaming-4967/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/renaming-4967/input/index.js:3:9 Module not found: Can't resolve './module'
1 | it('should check existing variables when renaming', function () {
2 | expect(require('./module').d.x()).toBe('ok')
+ v-----------------v
3 + expect(require('./module').c.a()).toBe('ok')
+ ^-----------------^
4 | expect(require('./module').test()).toBe('ok')
5 | })
6 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './module'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/renaming-4967/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/renaming-4967/input/index.js:4:9 Module not found: Can't resolve './module'
1 | it('should check existing variables when renaming', function () {
2 | expect(require('./module').d.x()).toBe('ok')
3 | expect(require('./module').c.a()).toBe('ok')
+ v-----------------v
4 + expect(require('./module').test()).toBe('ok')
+ ^-----------------^
5 | })
6 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './module'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/renaming-4967/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/side-effects-9159/input/reexport.js:1:0 Module not found: Can't resolve './package'
+ v-----------------------------------v
1 + export { value, ns } from './package'
+ ^-----------------------------------^
2 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './package'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/side-effects-9159/input/reexport.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/side-effects-9159/input/reexport.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/side-effects-9159/input/index.js
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment