You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which @ngrx/* package(s) are the source of the bug?
signals
Minimal reproduction of the bug/regression with instructions
I am using signalStore with a nested object and get the following error message from Webstorm and when compiling:
The inferred type of 'MyService' cannot be named without a reference to 'node_modules/@ngrx/signals/src/deep-signal'. This is likely not portable. A type annotation is necessary.
I can run it locally without any problems and everything works fine.
I use it in an angular library and not directly in a angular project.
If I set the declaration in tsconfig.json to false, it works.
If I add the entry export { DeepSignal } from './deep-signal'; in /node_modules/@ngrx/signals/src/index.d.ts, the compilation also works.
Expected behavior
No error message should appear when compiling (ng build).
Probably only export { DeepSignal } from ‘./deep-signal’ has to be added to index.ts.
Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)
@ngrx/signals: 18.0.0-beta.1
Angular: 18.0.1
Other information
No response
I would be willing to submit a PR to fix this issue
Yes
No
The text was updated successfully, but these errors were encountered:
Which @ngrx/* package(s) are the source of the bug?
signals
Minimal reproduction of the bug/regression with instructions
I am using signalStore with a nested object and get the following error message from Webstorm and when compiling:
The inferred type of 'MyService' cannot be named without a reference to 'node_modules/@ngrx/signals/src/deep-signal'. This is likely not portable. A type annotation is necessary.
I can run it locally without any problems and everything works fine.
I use it in an angular library and not directly in a angular project.
If I set the
declaration
intsconfig.json
tofalse
, it works.If I add the entry export
{ DeepSignal } from './deep-signal'
; in/node_modules/@ngrx/signals/src/index.d.ts
, the compilation also works.Expected behavior
No error message should appear when compiling (
ng build
).Probably only
export { DeepSignal } from ‘./deep-signal’
has to be added toindex.ts
.Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)
@ngrx/signals: 18.0.0-beta.1
Angular: 18.0.1
Other information
No response
I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: