#How is electron able to *skip* import rules?

32 messages · Page 1 of 1 (latest)

plucky spruce
silk gate
#

import rules?

#

this is typescript related question

#

not electron

#

if electron able to run then files still there

#

or typescript ignore those errors

plucky spruce
#

no

#

i mean

#

I did a debugger in the code using the import and it runs in electron?

#

how is that possible? when the file gives an import error issue?

#

but in electron

#

how can it find things that shouldn't even exist? according to import issue msg?

silk gate
#

typescript do that

#

not electron

plucky spruce
#

code can be found here

#

yeah im trying um, do the same in react as in electron

#

and this gives me an error i don't know how to solve

#

in react its more like a wall

silk gate
#

error comes from tsc linter

#

because of configs or other stuff

#

electron itself doesnt work with ts files

#

webpack for example my resolve modules correctly

#

but ts does not

#

try to remove old files and recompile again

timber pivot
#

background info:
some pure javascript modules, do not ship type definitions for typescript. Thus the @types github repo tries to help out. volunteers make and update typescript type files for all kind of modules that do not ship typescript type definitions. But if you have a version missmatch between @types/myModule version and myModule version, you can run into issues.

plucky spruce
#

um

#

ive another question but should i open anew thread?