Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: build issue #293

Merged
merged 1 commit into from
Nov 15, 2024
Merged

fix: build issue #293

merged 1 commit into from
Nov 15, 2024

Conversation

johngribbin
Copy link
Contributor

@johngribbin johngribbin commented Nov 15, 2024

Build failing with this error on multiple routes:

Error: Cannot access url.searchParams on a page with prerendering enabled
    at URL.get (file:///Users/johngribbin/Repos/clams-tech/Remote/.svelte-kit/output/server/index.js:436:15)
    at load (file:///Users/johngribbin/Repos/clams-tech/Remote/.svelte-kit/output/server/entries/pages/plugins/prism/create/_page.ts.js:2:11)
    at load_data (file:///Users/johngribbin/Repos/clams-tech/Remote/.svelte-kit/output/server/index.js:2368:44)
    at async file:///Users/johngribbin/Repos/clams-tech/Remote/.svelte-kit/output/server/index.js:3732:18
ReferenceError: Worker is not defined
    at file:///Users/johngribbin/Repos/clams-tech/Remote/.svelte-kit/output/server/chunks/helpers.js:272:22
    at ModuleJob.run (node:internal/modules/esm/module_job:194:25)

node:internal/event_target:1033
  process.nextTick(() => { throw err; });
                           ^
Error: 500 /plugins/prism/create
To suppress or handle this error, implement `handleHttpError` in https://kit.svelte.dev/docs/configuration#prerender
    at file:///Users/johngribbin/Repos/clams-tech/Remote/node_modules/@sveltejs/kit/src/core/config/options.js:212:13
    at file:///Users/johngribbin/Repos/clams-tech/Remote/node_modules/@sveltejs/kit/src/core/postbuild/prerender.js:64:25
    at save (file:///Users/johngribbin/Repos/clams-tech/Remote/node_modules/@sveltejs/kit/src/core/postbuild/prerender.js:403:4)
    at visit (file:///Users/johngribbin/Repos/clams-tech/Remote/node_modules/@sveltejs/kit/src/core/postbuild/prerender.js:236:3)
Emitted 'error' event on Worker instance at:
    at [kOnErrorMessage] (node:internal/worker:300:10)
    at [kOnMessage] (node:internal/worker:311:37)
    at MessagePort.<anonymous> (node:internal/worker:212:57)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:757:20)
    at exports.emitMessage (node:internal/per_context/messageport:23:28)

Node.js v18.18.0

@johngribbin johngribbin merged commit dbc6663 into develop Nov 15, 2024
2 checks passed
@johngribbin johngribbin mentioned this pull request Nov 15, 2024
@lnbc1QWFyb24 lnbc1QWFyb24 deleted the fix/build branch January 5, 2025 02:06
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