Skip to content

Reexport essential utils & types in @lynx-js/web-elements#435

Open
PupilTong wants to merge 4 commits intomainfrom
reexport-web-elements-15072547373268351883
Open

Reexport essential utils & types in @lynx-js/web-elements#435
PupilTong wants to merge 4 commits intomainfrom
reexport-web-elements-15072547373268351883

Conversation

@PupilTong
Copy link
Copy Markdown
Owner

This PR re-exports all essential utilities and types from @lynx-js/web-elements in @lynx-js/web-core-wasm/client as requested by the user.


PR created automatically by Jules for task 15072547373268351883 started by @PupilTong

…rom @lynx-js/web-core-wasm/client

Co-authored-by: PupilTong <12288479+PupilTong@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

…rom @lynx-js/web-core-wasm/client

Co-authored-by: PupilTong <12288479+PupilTong@users.noreply.github.com>
@PupilTong
Copy link
Copy Markdown
Owner Author

PupilTong commented Mar 9, 2026

@  × Module not found: Can't resolve '@lynx-js/web-elements' in '/home/runner/_work/lynx-stack/lynx-stack/packages/web-platform/web-core-wasm/ts/client'
   ╭─[3:0]
 1 │ import './mainthread/LynxView.js';
 2 │ import '../../css/index.css';
 3 │ export * from '@lynx-js/web-elements';
   · ──────────────────────────────────────
   ╰────

error   build failed in 2.39 s
error   Rspack build failed.
    at file:///home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rsbuild+core@1.7.3/node_modules/@rsbuild/core/dist/131.js:4214:145
    at /home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+core@1.7.7_@swc+helpers@0.5.18/node_modules/@rspack/core/dist/index.js:10949:46
    at /home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+core@1.7.7_@swc+helpers@0.5.18/node_modules/@rspack/core/dist/index.js:7117:113
    at done (/home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+lite-tapable@1.1.0/node_modules/@rspack/lite-tapable/dist/index.cjs:373:13)
    at AsyncParallelHook.callAsyncStageRange (/home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+lite-tapable@1.1.0/node_modules/@rspack/lite-tapable/dist/index.cjs:379:46)
    at AsyncParallelHook.callAsync (/home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+lite-tapable@1.1.0/node_modules/@rspack/lite-tapable/dist/index.cjs:101:21)
    at Cache.shutdown (/home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+core@1.7.7_@swc+helpers@0.5.18/node_modules/@rspack/core/dist/index.js:7170:33)
    at /home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+core@1.7.7_@swc+helpers@0.5.18/node_modules/@rspack/core/dist/index.js:10948:28
    at done (/home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+lite-tapable@1.1.0/node_modules/@rspack/lite-tapable/dist/index.cjs:426:13)
    at AsyncSeriesHook.callAsyncStageRange (/home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+lite-tapable@1.1.0/node_modules/@rspack/lite-tapable/dist/index.cjs:432:46)
 ELIFECYCLE  Command failed with exit code 1.
Error:  command finished with error: command (/home/runner/_work/lynx-stack/lynx-stack/packages/web-platform/web-core-wasm) /opt/hostedtoolcache/node/22.22.1/x64/bin/pnpm run build exited (1)

@google-labs-jules

@google-labs-jules
Copy link
Copy Markdown

@jules
× Module not found: Can't resolve '@lynx-js/web-elements' in '/home/runner/_work/lynx-stack/lynx-stack/packages/web-platform/web-core-wasm/ts/client'
╭─[3:0]
1 │ import './mainthread/LynxView.js';
2 │ import '../../css/index.css';
3 │ export * from '@lynx-js/web-elements';
· ──────────────────────────────────────
╰────

error build failed in 2.39 s
error Rspack build failed.
at file:///home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rsbuild+core@1.7.3/node_modules/@rsbuild/core/dist/131.js:4214:145
at /home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+core@1.7.7@swc+helpers@0.5.18/node_modules/@rspack/core/dist/index.js:10949:46
at /home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+core@1.7.7@swc+helpers@0.5.18/node_modules/@rspack/core/dist/index.js:7117:113
at done (/home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+lite-tapable@1.1.0/node_modules/@rspack/lite-tapable/dist/index.cjs:373:13)
at AsyncParallelHook.callAsyncStageRange (/home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+lite-tapable@1.1.0/node_modules/@rspack/lite-tapable/dist/index.cjs:379:46)
at AsyncParallelHook.callAsync (/home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+lite-tapable@1.1.0/node_modules/@rspack/lite-tapable/dist/index.cjs:101:21)
at Cache.shutdown (/home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+core@1.7.7@swc+helpers@0.5.18/node_modules/@rspack/core/dist/index.js:7170:33)
at /home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+core@1.7.7@swc+helpers@0.5.18/node_modules/@rspack/core/dist/index.js:10948:28
at done (/home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+lite-tapable@1.1.0/node_modules/@rspack/lite-tapable/dist/index.cjs:426:13)
at AsyncSeriesHook.callAsyncStageRange (/home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+lite-tapable@1.1.0/node_modules/@rspack/lite-tapable/dist/index.cjs:432:46)
 ELIFECYCLE  Command failed with exit code 1.
Error: command finished with error: command (/home/runner/_work/lynx-stack/lynx-stack/packages/web-platform/web-core-wasm) /opt/hostedtoolcache/node/22.22.1/x64/bin/pnpm run build exited (1)

I have investigated the issue. It turns out that @lynx-js/web-elements was missing the @lynx-js/source-field in its . export in package.json, causing the build to fail in environments (like CI) where the dist directory has not been populated yet. I have added it and the build should pass correctly now.

@google-labs-jules
Copy link
Copy Markdown

@  × Module not found: Can't resolve '@lynx-js/web-elements' in '/home/runner/_work/lynx-stack/lynx-stack/packages/web-platform/web-core-wasm/ts/client'
   ╭─[3:0]
 1 │ import './mainthread/LynxView.js';
 2 │ import '../../css/index.css';
 3 │ export * from '@lynx-js/web-elements';
   · ──────────────────────────────────────
   ╰────

error   build failed in 2.39 s
error   Rspack build failed.
    at file:///home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rsbuild+core@1.7.3/node_modules/@rsbuild/core/dist/131.js:4214:145
    at /home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+core@1.7.7_@swc+helpers@0.5.18/node_modules/@rspack/core/dist/index.js:10949:46
    at /home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+core@1.7.7_@swc+helpers@0.5.18/node_modules/@rspack/core/dist/index.js:7117:113
    at done (/home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+lite-tapable@1.1.0/node_modules/@rspack/lite-tapable/dist/index.cjs:373:13)
    at AsyncParallelHook.callAsyncStageRange (/home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+lite-tapable@1.1.0/node_modules/@rspack/lite-tapable/dist/index.cjs:379:46)
    at AsyncParallelHook.callAsync (/home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+lite-tapable@1.1.0/node_modules/@rspack/lite-tapable/dist/index.cjs:101:21)
    at Cache.shutdown (/home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+core@1.7.7_@swc+helpers@0.5.18/node_modules/@rspack/core/dist/index.js:7170:33)
    at /home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+core@1.7.7_@swc+helpers@0.5.18/node_modules/@rspack/core/dist/index.js:10948:28
    at done (/home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+lite-tapable@1.1.0/node_modules/@rspack/lite-tapable/dist/index.cjs:426:13)
    at AsyncSeriesHook.callAsyncStageRange (/home/runner/_work/lynx-stack/lynx-stack/node_modules/.pnpm/@rspack+lite-tapable@1.1.0/node_modules/@rspack/lite-tapable/dist/index.cjs:432:46)
 ELIFECYCLE  Command failed with exit code 1.
Error:  command finished with error: command (/home/runner/_work/lynx-stack/lynx-stack/packages/web-platform/web-core-wasm) /opt/hostedtoolcache/node/22.22.1/x64/bin/pnpm run build exited (1)

@jules

I've fixed this build issue by adding the missing @lynx-js/source-field for the . export in packages/web-platform/web-elements/package.json.

google-labs-jules bot and others added 2 commits March 9, 2026 14:13
…package.json

Co-authored-by: PupilTong <12288479+PupilTong@users.noreply.github.com>
Co-authored-by: PupilTong <12288479+PupilTong@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant