-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find module '!ify-loader!linebreak' #959
Comments
to be more concrete about the unresolved modules: I get:
|
Which Webpack version are you using? |
Thx for the feedback: I'm trying to use your package in a meteor.js application - meteor has it's own buildsystem and is currently running in version 2.1.1 the buildsystem is described here https://guide.meteor.com/build-tool.html |
This should build fine using npm with webpack - the |
this helps a lot. we will now be able to figure this out i hope :D |
I'm currently making babysteps to get your package running in meteor envoirement and finally I'm trying to display your render example from https://github.com/LLK/scratch-render#readme there a new Error appears: |
my react-code is:
|
@juliandierker That part of README is wrong. Renderer does not support workers. |
thx for the feedback - is there any other working example for a client side rendering? |
commenting out the "worker part" is not throwing any exceptions anymore and i see the white canvas now but no |
If there is no other working example I would maybe consider to embed scratch over LTI-Interface in my learning-envoirment? Do you know if there are working examples where scratch is used in a propper learning envoirment? Thx for the support. |
@juliandierker Renderer does not function on its own. You need to attach something that instructs a renderer, like a Scratch virtual machine. Scratch GUI is a react component and can be used in React programs. Scratch itself can be used in a proper learning environment - just not the one teachers usually want, i.e. telling a student to create the same script as a teacher and scoring based on the accuracy. |
Hi! Just wanted to leave an extra comment and thoughts on the original error in the title of this thread:
Although its correct that bundling your source application using webpack does resolve this issue with the correct webpack configuration (As ify-loader is a webpack specific plugin), this is not a valid solution for projects using other bundlers, such as esbuild/rollup/vite, etc. The reason other bundlers doen't work is that although the
The invalid A similar fix has also been made on scratch-storage (scratchfoundation/scratch-storage#421) |
Expected Behavior
Hey guys I would love to test your render package in my application but I'm struggling a little bit getting the depencies together.
Actual Behavior
I wrote a compontent using your package like in the coding-example just translated to es6:
import { canvas as renderer } from "scratch-render"; ....
Steps to Reproduce
When i try to reach the site where i use the scratch-render i get:
Uncaught Error: Cannot find module '!ify-loader!linebreak'
System Details
What i did so far is to install dependencies you are using like:
"hull.js": "^0.2.10", "ify-loader": "^1.1.0", and all the others
The text was updated successfully, but these errors were encountered: