React Typescipt build error #2215
Replies: 2 comments 1 reply
-
You don't need to worry about the source map. It's only a warning and not a blocking error. We probably should include the ts(x) files in the package. So the problem lies not with the TypeScript build I think. It more looks like the core h5p files (the JavaScript provided by Joubel) is not loaded properly. Both of you error messages are about the H5P core not being loaded. The H5P core is loaded from the files referenced in the |
Beta Was this translation helpful? Give feedback.
-
I am having same issue. I modified the sample sever-project with the sample frontend project and its working fine. Now I am trying to move the frontend part into my main react.js app which is in js. Its giving me same error as explained above by [EgeKaanGurkan] |
Beta Was this translation helpful? Give feedback.
-
Hey,
First off, thanks for you guys' amazing work!
I have successfully integrated your libraries and got desired behaviour on my local machine and I can run it with no problem with
npm start
. But when I build the frontend withnpm run build
(which just runsreact-scripts build
) and serve it withserve -s build
for a production build that I can deploy with Docker on Kubernetes, I get errors like the following in the Chrome console:@lumieducation/h5p-react
:The errors are thrown from
h5p-editor.ts:390
andh5p-player.ts:423
respectively.Also, while taking the build, I get errors like:
and when I look inside my
node_modules
folder, the file structure really does not match where the Typescript compiler is trying to look at. I am not well versed in compiling for a production build, so some guidance would be amazing.If it helps, here is my
tsconfig.json
file:Beta Was this translation helpful? Give feedback.
All reactions