Skip to content

Repo setup does not work on Windows #661

@ggcaponetto

Description

@ggcaponetto

Summary

Unfortunately we are still not able to do trouch the getting started on Windows. The build script has errors and the dev server still does not server all assets correctly.

It works on linux though.

Here are some error logs:

PS C:\Users\capog\repositories\lwc-recipes-oss> node --version
v22.22.0
PS C:\Users\capog\repositories\lwc-recipes-oss> npm run build

> @salesforce/lwc-recipes-oss@1.0.0 build
> lwr build

[info][build] Building lwr application
[info][ssg] Static Site Generation
[info][ssg] Building routes (this may take some time to complete)
[info][ssg] en-US \lwr-info in 14 ms
[error] Failed to get view definition "home"
[error] Could not load /1/bundle/esm/l/en-US/bi/0/module/mi/recipe%2FerrorPanel%23templates%5CnoDataIllustration.css%2Fv%2F1_0_0/latest/bundle_recipe_errorPanel_templates
oDataIllustration_css.js (imported by ../../../../../1/bundle/esm/l/en-US/bi/0/module/mi/recipe%2FerrorPanel%23templates%2FnoDataIllustration.html%2Fv%2F1_0_0/latest/bundle_recipe_errorPanel_templates_noDataIllustration_html.js): Cannot read properties of undefined (reading 'linkedModuleRecord')        
TypeError: Could not load /1/bundle/esm/l/en-US/bi/0/module/mi/recipe%2FerrorPanel%23templates%5CnoDataIllustration.css%2Fv%2F1_0_0/latest/bundle_recipe_errorPanel_templates
oDataIllustration_css.js (imported by ../../../../../1/bundle/esm/l/en-US/bi/0/module/mi/recipe%2FerrorPanel%23templates%2FnoDataIllustration.html%2Fv%2F1_0_0/latest/bundle_recipe_errorPanel_templates_noDataIllustration_html.js): Cannot read properties of undefined (reading 'linkedModuleRecord')        
    at Object.load (file:///C:/Users/capog/repositories/lwc-recipes-oss/node_modules/@lwrjs/module-bundler/build/es/utils/rollup-esm-bundler-plugin.js:57:39)
    at file:///C:/Users/capog/repositories/lwc-recipes-oss/node_modules/@lwrjs/module-bundler/node_modules/rollup/dist/es/shared/rollup.js:22748:40 {
  code: 'PLUGIN_ERROR',
  plugin: 'bundle-plugin',
  hook: 'load',
  watchFiles: [Array]
}
[error] An unexpected error occurred: "Could not load /1/bundle/esm/l/en-US/bi/0/module/mi/recipe%2FerrorPanel%23templates%5CnoDataIllustration.css%2Fv%2F1_0_0/latest/bundle_recipe_errorPanel_templates
oDataIllustration_css.js (imported by ../../../../../1/bundle/esm/l/en-US/bi/0/module/mi/recipe%2FerrorPanel%23templates%2FnoDataIllustration.html%2Fv%2F1_0_0/latest/bundle_recipe_errorPanel_templates_noDataIllustration_html.js): Cannot read properties of undefined (reading 'linkedModuleRecord')"       
LwrServerError: An unexpected error occurred: "Could not load /1/bundle/esm/l/en-US/bi/0/module/mi/recipe%2FerrorPanel%23templates%5CnoDataIllustration.css%2Fv%2F1_0_0/latest/bundle_recipe_errorPanel_templates
oDataIllustration_css.js (imported by ../../../../../1/bundle/esm/l/en-US/bi/0/module/mi/recipe%2FerrorPanel%23templates%2FnoDataIllustration.html%2Fv%2F1_0_0/latest/bundle_recipe_errorPanel_templates_noDataIllustration_html.js): Cannot read properties of undefined (reading 'linkedModuleRecord')"       
    at LwrViewRegistry.getViewDefinition (file:///C:/Users/capog/repositories/lwc-recipes-oss/node_modules/@lwrjs/view-registry/build/es/index.js:258:19)
    at async LwrViewHandler.getDefaultRouteViewDefinition (file:///C:/Users/capog/repositories/lwc-recipes-oss/node_modules/@lwrjs/view-registry/build/es/view-handler.js:133:32)
    at async LwrViewHandler.getViewContent (file:///C:/Users/capog/repositories/lwc-recipes-oss/node_modules/@lwrjs/view-registry/build/es/view-handler.js:47:32)
    at async file:///C:/Users/capog/repositories/lwc-recipes-oss/node_modules/@lwrjs/core/build/es/middleware/view-middleware.js:68:29
    at async file:///C:/Users/capog/repositories/lwc-recipes-oss/node_modules/@lwrjs/core/build/es/middleware/view-middleware.js:55:28
    at async file:///C:/Users/capog/repositories/lwc-recipes-oss/node_modules/@lwrjs/core/build/es/middleware/utils/error-handling.js:56:13
    at async file:///C:/Users/capog/repositories/lwc-recipes-oss/node_modules/@lwrjs/server/build/es/fs/fs-server.js:67:13
    at async file:///C:/Users/capog/repositories/lwc-recipes-oss/node_modules/@lwrjs/core/build/es/middleware/locale-middleware.js:7:9
    at async file:///C:/Users/capog/repositories/lwc-recipes-oss/node_modules/@lwrjs/server/build/es/fs/fs-server.js:53:13
    at async file:///C:/Users/capog/repositories/lwc-recipes-oss/node_modules/@lwrjs/core/build/es/middleware/request-processor-middleware.js:9:13
    at async file:///C:/Users/capog/repositories/lwc-recipes-oss/node_modules/@lwrjs/server/build/es/fs/fs-server.js:53:13
    at async LwrFsKoa.dispatchUrl (file:///C:/Users/capog/repositories/lwc-recipes-oss/node_modules/@lwrjs/server/build/es/fs/fs-server.js:26:9)
    at async SiteGenerator.dispatchResourceRecursive (file:///C:/Users/capog/repositories/lwc-recipes-oss/node_modules/@lwrjs/core/build/es/tools/static-generation.js:168:23)
    at async SiteGenerator.generateRoute (file:///C:/Users/capog/repositories/lwc-recipes-oss/node_modules/@lwrjs/core/build/es/tools/static-generation.js:131:13)
    at async SiteGenerator.generateRoutesForLocale (file:///C:/Users/capog/repositories/lwc-recipes-oss/node_modules/@lwrjs/core/build/es/tools/static-generation.js:91:13)
    at async SiteGenerator.generateRoutes (file:///C:/Users/capog/repositories/lwc-recipes-oss/node_modules/@lwrjs/core/build/es/tools/static-generation.js:69:13)
    at async SiteGenerator.buildStaticApplication (file:///C:/Users/capog/repositories/lwc-recipes-oss/node_modules/@lwrjs/core/build/es/tools/static-generation.js:46:9)
    at async generateStaticSite (file:///C:/Users/capog/repositories/lwc-recipes-oss/node_modules/@lwrjs/core/build/es/index.js:205:5)
    at async build (file:///C:/Users/capog/repositories/lwc-recipes-oss/node_modules/@lwrjs/api/build/es/cli/build.js:58:9)
    at async Command.<anonymous> (file:///C:/Users/capog/repositories/lwc-recipes-oss/node_modules/lwr/build/es/cli/commands/build.js:19:9)
[info][ssg] en-US \ in 3375 ms
[info][ssg] Static Site Generation complete in 3 seconds
PS C:\Users\capog\repositories\lwc-recipes-oss> npm run dev  

When running the dev server we get the same unusable page.

Steps To Reproduce

No response

Current Behavior

No response

Expected Behavior

No response

Relevant Log Output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions