#How is electron able to *skip* import rules?
32 messages · Page 1 of 1 (latest)
import rules?
this is typescript related question
not electron
if electron able to run then files still there
or typescript ignore those errors
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?
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
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
do you have this in your devDependencies? https://www.npmjs.com/package/@types/react-syntax-highlighter
if yes, check if the version of it fits to the module version itself (i think major and minor must match for @types?).
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.