Skip to content

Conversation

@sokra
Copy link
Member

@sokra sokra commented Sep 22, 2025

No description provided.

Copy link
Contributor

@vercel vercel bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Comments:

turbopack/crates/turbopack-ecmascript/src/inlined_bytes_module.rs (line 75):

The file uses the old EcmascriptExports::Value.cell() syntax which no longer exists after the refactoring, causing a compilation error.

View Details
📝 Patch Details
diff --git a/turbopack/crates/turbopack-ecmascript/src/inlined_bytes_module.rs b/turbopack/crates/turbopack-ecmascript/src/inlined_bytes_module.rs
index 18b1c9b9c3..a565ad0322 100644
--- a/turbopack/crates/turbopack-ecmascript/src/inlined_bytes_module.rs
+++ b/turbopack/crates/turbopack-ecmascript/src/inlined_bytes_module.rs
@@ -16,7 +16,7 @@ use turbopack_core::{
 use crate::{
     chunk::{
         EcmascriptChunkItem, EcmascriptChunkItemContent, EcmascriptChunkPlaceable,
-        EcmascriptChunkType, EcmascriptExports,
+        EcmascriptChunkType, EcmascriptExports, EcmascriptExportsType,
     },
     runtime_functions::TURBOPACK_EXPORT_VALUE,
     utils::StringifyJs,
@@ -72,7 +72,10 @@ impl ChunkableModule for InlinedBytesJsModule {
 impl EcmascriptChunkPlaceable for InlinedBytesJsModule {
     #[turbo_tasks::function]
     fn get_exports(&self) -> Vc<EcmascriptExports> {
-        EcmascriptExports::Value.cell()
+        EcmascriptExports {
+            ty: EcmascriptExportsType::Value,
+        }
+        .cell()
     }
 
     #[turbo_tasks::function]

Analysis

Compilation error: EcmascriptExports::Value syntax no longer valid

What fails: InlinedBytesJsModule.get_exports() uses outdated enum syntax EcmascriptExports::Value.cell() but EcmascriptExports was refactored from enum to struct

How to reproduce:

cd turbopack && cargo check --package turbopack-ecmascript

Result: Compilation error no associated item named 'Value' found for struct 'EcmascriptExports' in turbopack/crates/turbopack-ecmascript/src/inlined_bytes_module.rs:75

Expected: Should compile successfully using struct syntax EcmascriptExports { ty: EcmascriptExportsType::Value }.cell() matching other files in codebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

created-by: Turbopack team PRs by the Turbopack team. Turbopack Related to Turbopack with Next.js.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants