https://github.com/lukethacoder/lwc-nested-import-bug
small reproduction of nested import bug
https://github.com/lukethacoder/lwc-nested-import-bug
Last synced: 3 months ago
JSON representation
small reproduction of nested import bug
- Host: GitHub
- URL: https://github.com/lukethacoder/lwc-nested-import-bug
- Owner: lukethacoder
- License: gpl-3.0
- Created: 2023-05-12T01:11:02.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-12T01:34:52.000Z (about 2 years ago)
- Last Synced: 2025-02-14T05:25:36.278Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 78.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lwc-nested-import-bug
small reproduction of nested import bug
Tracking issue [salesforce/lwc/issues/3495](https://github.com/salesforce/lwc/issues/3495)
### Folder Structure
```
.
└── modules/c/
├── app/
│ ├── app.html
│ ├── app.js
│ └── app.js-meta.xml
└── chartUtils/
├── controllers/
│ ├── example_controller.js
│ └── index.js
├── chartUtils.js
└── chartUtils.js-meta.xml
```### Error Message
```
Running LWR at: http://localhost:3000 | mode: dev[info] Watching: C:\PATH_TO_REPO\lwc-nested-import-bug\local\layouts\main.njk
[info] Watching: C:\PATH_TO_REPO\lwc-nested-import-bug\modules\c\app\app.js
[info] Watching: C:\PATH_TO_REPO\lwc-nested-import-bug\modules\c\app\app.html
[info] Watching: C:\PATH_TO_REPO\lwc-nested-import-bug\modules\c\chartUtils\chartUtils.js
Error: Unable to find file "C:\PATH_TO_REPO\lwc-nested-import-bug\modules\c\chartUtils\example_controller"at resolveFileExtension (file:///PATH_TO_REPO/lwc-nested-import-bug/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/@lwrjs/shared-utils/build/es/fs.js:53:15)
at LwcModuleProvider.createModuleEntry (file:///PATH_TO_REPO/lwc-nested-import-bug/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/@lwrjs/lwc-module-provider/build/es/index.js:209:24)
at file:///PATH_TO_REPO/lwc-nested-import-bug/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/@lwrjs/lwc-module-provider/build/es/index.js:145:25
at InflightTasks.execute (file:///PATH_TO_REPO/lwc-nested-import-bug/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/@lwrjs/shared-utils/build/es/tasks.js:83:23)
at LwcModuleProvider.getModuleEntry (file:///PATH_TO_REPO/lwc-nested-import-bug/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/@lwrjs/lwc-module-provider/build/es/index.js:144:48)
at LwrModuleRegistry.delegateGetModuleEntryOnServices (file:///PATH_TO_REPO/lwc-nested-import-bug/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@lwrjs/module-registry/build/es/index.js:226:43)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async resolveRelativeImport (file:///PATH_TO_REPO/lwc-nested-import-bug/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@lwrjs/module-registry/build/es/module-record.js:20:35)
at async getModuleRecord (file:///PATH_TO_REPO/lwc-nested-import-bug/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@lwrjs/module-registry/build/es/module-record.js:75:44)
at async LwrModuleRegistry.createModuleDefinition (file:///PATH_TO_REPO/lwc-nested-import-bug/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@lwrjs/module-registry/build/es/index.js:116:30)
[info] Watching: C:\PATH_TO_REPO\lwc-nested-import-bug\modules\c\chartUtils\controllers\index.js
```