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
Not too sure what package it is covered by in this ecosystem.
Description
So I structure my apps like src/app/pages/page.module and src/app/core/models/test.model.ts and usually, using an import in a module like import {thing} from 'src/app/core/models/test.model works fine, however when lazy loading that module in app-routing.module.ts, and commenting out the route that loads the import code, VS Code Insiders, or typescript, whichever, cannot pick up on that import for some reason.
I haven't had this before, however I also haven't commented out routes from my projects before today so it may or may not be present in older versions.
Everything still builds fine, and ng serve works too, which leads me to think that it's either a IDE thing, or a typescript thing.
Changing the import to import { TestInterface } from '../../core/models/test.model'; works in both cases, however if using src/app works at all it should probably work both ways, all the time.
🌍 Your Environment
Angular Version:
Anything else relevant?
I don't know if this is a language service issue, but this is the log for the language service extension version 0.1000.7 https://pastebin.com/raw/TqsF7u07
I am currently using VS Code - Insiders 1.49
The text was updated successfully, but these errors were encountered:
🐞 bug report
Affected Package
Not too sure what package it is covered by in this ecosystem.
Description
So I structure my apps like
src/app/pages/page.module
andsrc/app/core/models/test.model.ts
and usually, using an import in a module likeimport {thing} from 'src/app/core/models/test.model
works fine, however when lazy loading that module inapp-routing.module.ts
, and commenting out the route that loads the import code, VS Code Insiders, or typescript, whichever, cannot pick up on that import for some reason.I haven't had this before, however I also haven't commented out routes from my projects before today so it may or may not be present in older versions.
Everything still builds fine, and
ng serve
works too, which leads me to think that it's either a IDE thing, or a typescript thing.File structure:
🔬 Minimal Reproduction
https://github.com/napei/ng-test-linting
Code on the
master
branch works as expected, and code on thebroken
branch is, by name, broken.Also, here is a short demo, in case nobody can repro. https://www.youtube.com/watch?v=RXTsaZA6Y88
Changing the import to
import { TestInterface } from '../../core/models/test.model';
works in both cases, however if usingsrc/app
works at all it should probably work both ways, all the time.🌍 Your Environment
Angular Version:
Anything else relevant?
I don't know if this is a language service issue, but this is the log for the language service extension version
0.1000.7
https://pastebin.com/raw/TqsF7u07
I am currently using
VS Code - Insiders 1.49
The text was updated successfully, but these errors were encountered: