oslabs-beta / EmberQL

http://emberql.com/
MIT License
46 stars 2 forks source link

Unable to load png #27

Closed Cristian-DeLosRios closed 2 years ago

Cristian-DeLosRios commented 2 years ago

Does not recognize Png's file path unless IsolatedModules is turned off within tsconfig.json.

IsolatedModules have been set to false as a bandaid fix to maintain visualization until the issue is resolved.

TylerPohn commented 2 years ago

Website branch update has been pushed up. Here is the error log associated with this issue:

ERROR in /Users/tylerpohn/Desktop/CodeSmith/Phoenix/EmberQL/demo/client/components/DocsContainer.tsx [0] ./client/components/DocsContainer.tsx 4:16-43 [0] [tsl] ERROR in /Users/tylerpohn/Desktop/CodeSmith/Phoenix/EmberQL/demo/client/components/DocsContainer.tsx(4,17) [0] TS2307: Cannot find module './assets/githubReadme.png' or its corresponding type declarations. [0] ts-loader-default_e3b0c44298fc1c14 [0] @ ./client/App.tsx 11:40-77 [0] @ ./client/index.tsx 10:30-46 [0] [0] ERROR in /Users/tylerpohn/Desktop/CodeSmith/Phoenix/EmberQL/demo/d.ts [0] 1:15-22 [0] [tsl] ERROR in /Users/tylerpohn/Desktop/CodeSmith/Phoenix/EmberQL/demo/d.ts(1,16) [0] TS2664: Invalid module name in augmentation, module '*.png' cannot be found. [0] ts-loader-default_e3b0c44298fc1c14 [0] [0] webpack 5.64.4 compiled with 2 errors in 22797 ms [0] ℹ 「wdm」: Failed to compile.

Cristian-DeLosRios commented 2 years ago

Resolved by creating d.ts