-
Notifications
You must be signed in to change notification settings - Fork 100
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
Test suite failed: import Editor from '@ckeditor/ckeditor5-core/src/editor/editor'; #147
Comments
Hi, thanks for the report. Unfortunately I can confirm that. I created a fresh project following docs on building from source and as soon as I ran some simple tests I got: import Editor from '@ckeditor/ckeditor5-core/src/editor/editor';
^^^^^^
SyntaxError: Unexpected identifier
4 |
5 | // NOTE: Use the editor from source (not a build)!
> 6 | import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
| ^
7 |
8 | import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials';
9 | import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:537:17)
at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:579:25)
at Object.<anonymous> (src/App.js:6:1) cc @pomek could you take a look at this? |
Also see: #225. |
Oh, that's an even better one. Pitty that it wasn't the first result in a web search 🙃 I wouldn't have to dig into Jest documentation :D |
Hi How can we style placeholder text, especially to reduce the font size and font family https://codesandbox.io/s/festive-nova-l4zo5?file=/src/App.js can some one help in modifying the size of placeholder text |
Hey guys,
I keep having troubles with my ckeditor integration.
I used the build from source version, like discribed here
but in an exsiting project -> so I started with adding the packages and modifying webpack.
The integration seems to be working good, but when I run my tests, then I getting and error,
where I can't find the reason.
The tests are done with jest and only failing when I implement the built from source.
I also tested the ready to use classic-build, but seem to work fine.
Details of the error and code are described below
The full error message says:
`● Test suite failed to run
What I was doing:
1.) Implemented the editor (config settings in a seperate file)
2.) set up the config
Thats what I did, but checking my code and other error reports, did let me figure out why that happens. I checked my packages.json
And now the biggest part, the webpack. I have to admid, I haven't worked with webpack before,
and most of it was already their. So I migth have missed something here. But I did try to
add the settings, like meanted in the description above, only with the problem that the part
with the
loader: 'style-loader'
intest: /ckeditor5-[^/\\]+[/\\]theme[/\\].+\.css$/,
allways had some problems. I completely removed that part, after seen that thes?css
allready set thestyle-loader
and the problems where gone.Full config:
Does anyone has a idea why that error happens and how to solve it?
The text was updated successfully, but these errors were encountered: