reqlanOverviewIdeasFilesCode filesClustersAttributesGraphPrint
Ideas/invalid_url_activation_failure

Idea detail

invalid_url_activation_failure

reqlan rq/extension/startup-performance.rq:26

block done

Summary

The concrete incident failed while requiring `out/extension/main.cjs`, before `activate()` ran:
`TypeError: Invalid URL` in `embedPhysicsCoreSource`.
Runtime `readFileSync(new URL(..., import.meta.url))` is unsafe when esbuild emits CommonJS for an ES2017 target: `import.meta.url` is unavailable / empty and source-relative assets do not exist beside the bundled entry.
The fix generates and imports `PHYSICS_CORE_CLASSIC_SOURCE` at build time instead of resolving the source file at extension runtime.
html-export-assets.ts
generate-physics-core-source.mjs

Jump to outbound references

Jump to inbound references

Navigation

Source file

reqlan rq/extension/startup-performance.rq

startup-performance.rq

file cluster

reqlan rq/extension

folder cluster

status: done

status cluster

tag: Not present

tag cluster

Printable page

Static print-friendly idea sheet.

Attributes

KeyValue
status done

Browse all attributes

Ancestor context

No ancestor chain recorded.

Outbound references

KindIdeaPathSnippet
file_reference ../../packages/analytical/scripts/generate-physics-core-source.mjs packages/analytical/scripts/generate-physics-core-source.mjs generate-physics-core-source.mjs
file_reference ../../packages/analytical/src/export/html-export-assets.ts packages/analytical/src/export/html-export-assets.ts html-export-assets.ts

Inbound references

KindIdeaPathSnippet
None

Unresolved references

KindIdeaPathSnippet
None

Local graph

Initialising graph…