Have you tried to resolve this issue yourself first?
Bug Description
Create a simple LWC, with
import hasDelegatedAdmin from '@salesforce/customPermission/DelegatedAdmin';
or any
- @salesforce/user/*
- @salesforce/userPermission/*
- @salesforce/customPermission/*
Run the code analyser eslint scan, the error show up.
https://github.com/salesforce/eslint-plugin-lwc/blob/v3.5.0/docs/rules/ssr/ssr-no-static-imports-of-user-specific-scoped-modules.md
The LWC component is neither marked with lightning__ServerRenderable nor lightning__ServerRenderableWithHydration
Output / Logs
Steps To Reproduce
Check Description.
Expected Behavior
The error should happen only for LWCs components with lightning__ServerRenderable nor lightning__ServerRenderableWithHydration
Operating System
Any
Salesforce CLI Version
@salesforce/cli/2.136.8 darwin-arm64 node-v22.22.2
Code Analyzer Plugin (code-analyzer) Version
code-analyzer 5.12.0 (5.12.0)
Node Version
No response
Java Version
No response
Python Version
No response
Additional Context (Screenshots, Files, etc)
No response
Workaround
Suppress or lower the error to warning.
Urgency
High
Have you tried to resolve this issue yourself first?
Bug Description
Create a simple LWC, with
import hasDelegatedAdmin from '@salesforce/customPermission/DelegatedAdmin';or any
Run the code analyser eslint scan, the error show up.
https://github.com/salesforce/eslint-plugin-lwc/blob/v3.5.0/docs/rules/ssr/ssr-no-static-imports-of-user-specific-scoped-modules.md
The LWC component is neither marked with lightning__ServerRenderable nor lightning__ServerRenderableWithHydration
Output / Logs
Steps To Reproduce
Check Description.
Expected Behavior
The error should happen only for LWCs components with lightning__ServerRenderable nor lightning__ServerRenderableWithHydration
Operating System
Any
Salesforce CLI Version
@salesforce/cli/2.136.8 darwin-arm64 node-v22.22.2
Code Analyzer Plugin (code-analyzer) Version
code-analyzer 5.12.0 (5.12.0)
Node Version
No response
Java Version
No response
Python Version
No response
Additional Context (Screenshots, Files, etc)
No response
Workaround
Suppress or lower the error to warning.
Urgency
High