frankcollins3 / PHPokedex

react concepts
0 stars 0 forks source link

module not found [1:08pm] #2

Closed frankcollins3 closed 1 year ago

frankcollins3 commented 1 year ago

nothing in sight to show why this error would be coming up.

Screen Shot 2023-03-13 at 1 07 35 PM

tsconfig.json:

![Uploading Screen Shot 2023-03-13 at 1.09.02 PM.png…]()

frankcollins3 commented 1 year ago

this should prove that baseUrl is not set up correctly:

Screen Shot 2023-03-13 at   10 39 PM

I believe it does so because: 1) "../" before the rest of the relative path fixes the problem 2) "contexts/global the whole point of setting baseUrl to be the home index which would be "/" is so that this would work

at least thats how I interpreted past correct use of baseUrl

[1:13pm]

frankcollins3 commented 1 year ago

referenced the project I just published and found out it is "." instead of "/" and now the original path works assuming baseUrl is allowing the absence of such path prependings as "../../"

Screen Shot 2023-03-13 at 1 13 59 PM

Screen Shot 2023-03-13 at 1 13 55 PM

[1:15pm]