File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -579,6 +579,36 @@ const AuthorFactory = defineAuthorFactory({
579
579
});
580
580
```
581
581
582
+ ### ` error TS2307: Cannot find module '@mizdra/graphql-fabbrica/helper' or its corresponding type declarations. `
583
+
584
+ Incorrect values for the ` moduleResolution ` option in ` tsconfig.json ` cause compile errors.
585
+
586
+ ``` json
587
+ {
588
+ "compilerOptions" : {
589
+ "moduleResolution" : " node" // incorrect
590
+ }
591
+ }
592
+ ```
593
+
594
+ ``` console
595
+ $ npx tsc --noEmit
596
+ __generated__/1-basic/fabbrica.ts:7:8 - error TS2307: Cannot find module '@mizdra/graphql-fabbrica/helper' or its corresponding type declarations.
597
+
598
+ 7 } from '@mizdra/graphql-fabbrica/helper';
599
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
600
+ ```
601
+
602
+ To resolve this error, set the value of ` moduleResolution ` to ` Bundler ` , ` Node16 ` or ` NodeNext ` .
603
+
604
+ ``` json
605
+ {
606
+ "compilerOptions" : {
607
+ "moduleResolution" : " Bundler" // ok
608
+ }
609
+ }
610
+ ```
611
+
582
612
## License
583
613
584
614
This library is licensed under the MIT license.
You can’t perform that action at this time.
0 commit comments