Integrate image in theia #15148
-
Hi! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @israhadhri, can you give a bit more context? How are you trying to integrate the image, and are you facing any errors in the build process? Note that Theia builds the JS code from the |
Beta Was this translation helpful? Give feedback.
-
@msujew Ah! ok thanks, using relative path solves my problem |
Beta Was this translation helpful? Give feedback.
Hey @israhadhri,
can you give a bit more context? How are you trying to integrate the image, and are you facing any errors in the build process?
Note that Theia builds the JS code from the
lib
directory, and not from yoursrc
directory. Therefore, allrequire
calls to files that are placed in thesrc
directory must use a relative path. See for example:theia/packages/core/src/browser/frontend-application-module.ts
Line 17 in afde78f