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
Hi, I think this change #1148 cause me some weird issue.
I am having
import { demoRoutes } from './app-routing.module.dummy'
now it failing because it searching for file named
"app-routing.ts" and should look for "app-routing.module.dummy.ts"
[13:56:52] parsing : /home/z003zvsd/src/s7p-webserver-ui/src/app/app-routing.module.dummy.ts
[13:56:52] found : demoRoutes
[13:56:52] parsing : /home/z003zvsd/src/s7p-webserver-ui/src/app/app-routing.module.ts
[13:56:52] Analysing routes definitions and clean them if necessary
Unhandled Rejection at: Promise {
<rejected> FileNotFoundError: File not found: /home/z003zvsd/src/s7p-webserver-ui/src/app/app-routing.ts
at DirectoryCoordinator.addSourceFileAtPath (/home/z003zvsd/src/s7p-webserver-ui/node_modules/ts-morph/dist/ts-morph.js:18641:19)
at Project.addSourceFileAtPath (/home/z003zvsd/src/s7p-webserver-ui/node_modules/ts-morph/dist/ts-morph.js:20086:51)
at _loop_3 (/home/z003zvsd/src/s7p-webserver-ui/node_modules/@compodoc/compodoc/dist/index-cli-298ea115.js:6397:33)
at RouterParserUtil.cleanFileSpreads (/home/z003zvsd/src/s7p-webserver-ui/node_modules/@compodoc/compodoc/dist/index-cli-298ea115.js:6427:17)
at AngularDependencies.getSourceFileDecorators (/home/z003zvsd/src/s7p-webserver-ui/node_modules/@compodoc/compodoc/dist/index-cli-298ea115.js:9320:32)
at /home/z003zvsd/src/s7p-webserver-ui/node_modules/@compodoc/compodoc/dist/index-cli-298ea115.js:9130:31
at Array.map (<anonymous>)
at AngularDependencies.getDependencies (/home/z003zvsd/src/s7p-webserver-ui/node_modules/@compodoc/compodoc/dist/index-cli-298ea115.js:9119:21)
at CliApplication.Application.getDependenciesData (/home/z003zvsd/src/s7p-webserver-ui/node_modules/@compodoc/compodoc/dist/index-cli-298ea115.js:10845:40)
at /home/z003zvsd/src/s7p-webserver-ui/node_modules/@compodoc/compodoc/dist/index-cli-298ea115.js:10656:23 {
path: '/home/z003zvsd/src/s7p-webserver-ui/src/app/app-routing.ts',
code: 'ENOENT'
}
} reason: FileNotFoundError: File not found: /home/z003zvsd/src/s7p-webserver-ui/src/app/app-routing.ts
at DirectoryCoordinator.addSourceFileAtPath (/home/z003zvsd/src/s7p-webserver-ui/node_modules/ts-morph/dist/ts-morph.js:18641:19)
at Project.addSourceFileAtPath (/home/z003zvsd/src/s7p-webserver-ui/node_modules/ts-morph/dist/ts-morph.js:20086:51)
at _loop_3 (/home/z003zvsd/src/s7p-webserver-ui/node_modules/@compodoc/compodoc/dist/index-cli-298ea115.js:6397:33)
at RouterParserUtil.cleanFileSpreads (/home/z003zvsd/src/s7p-webserver-ui/node_modules/@compodoc/compodoc/dist/index-cli-298ea115.js:6427:17)
at AngularDependencies.getSourceFileDecorators (/home/z003zvsd/src/s7p-webserver-ui/node_modules/@compodoc/compodoc/dist/index-cli-298ea115.js:9320:32)
at /home/z003zvsd/src/s7p-webserver-ui/node_modules/@compodoc/compodoc/dist/index-cli-298ea115.js:9130:31
at Array.map (<anonymous>)
at AngularDependencies.getDependencies (/home/z003zvsd/src/s7p-webserver-ui/node_modules/@compodoc/compodoc/dist/index-cli-298ea115.js:9119:21)
at CliApplication.Application.getDependenciesData (/home/z003zvsd/src/s7p-webserver-ui/node_modules/@compodoc/compodoc/dist/index-cli-298ea115.js:10845:40)
at /home/z003zvsd/src/s7p-webserver-ui/node_modules/@compodoc/compodoc/dist/index-cli-298ea115.js:10656:23 {
path: '/home/z003zvsd/src/s7p-webserver-ui/src/app/app-routing.ts',
code: 'ENOENT'
}
currently workaroundable by having a symlink
$ cd src/app
$ ln -s app-routing.module.dummy.ts app-routing.ts
Overview of the issue
Hi, I think this change #1148 cause me some weird issue.
I am having
now it failing because it searching for file named
"app-routing.ts" and should look for "app-routing.module.dummy.ts"
currently workaroundable by having a symlink
Operating System, Node.js, npm, compodoc version(s)
OS is Archlinux stable, nodejs stable, npm+yarn-berry stable
and after upgrading compodoc 1.1.15 -> 1.1.16
Angular configuration, a
package.json
file in the root folderReproduce the error
Probably have more dots in the file name of the router file
Suggest a Fix
Maybe ts-morph has wrong implementation of getModuleSpecifierValue() and should this be filed as upstream bug.
The text was updated successfully, but these errors were encountered: