Open lukethacoder opened 1 year ago
Thanks for filing! I've successfully repro'ed. FWIW this also seems to fail with a .js
added to the import:
export { default as ExampleController } from './example_controller.js'
@lukethacoder Sorry this is currently not supported by the LWR-JS runtime. We can only resolve references relative to the root of the component.
Curious to know what the difference is between the on-platform runtime and the LWR-JS runtime? I would have thought they would be (mostly) aligned?
Thank you for looking into this and providing such a clear reproducible scenario.
The goal is to have the off-core runtime to be able to run the same components as on-core as much as possible. However, the off-core runtime is a separate node-based run time and this is one of the gaps that exist between this implementation and the on-core Java runtime.
I will file a bug to track but I cannot say how quickly we would be able to add this behavior.
Description
Steps to Reproduce
Example Repo
Folder Structure
chartUtils/chartUtils.js
chartUtils/controllers/index.js
chartUtils/controllers/example_controller.js
app/app.js
Expected Results
Page to render without any issues and the module import to be resolved.
Actual Results
Error is thrown when attempting to load the page. Browser remains blank.
Browsers Affected
non-browser issue?
Version
Possible Solution
Looks like some magic hidden behind one of the
@lwrjs/*
packages?Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.