Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

374
Views
Instale ckeditor5 y obtenga "token inesperado. Es posible que necesite un cargador adecuado para manejar este tipo de archivo". error en react.js

Quiero importar ckeditor5 en mi proyecto React. Hago referencia a la descripción oficial del enlace aquí .
Primero, ejecuto la instalación de la siguiente manera:

 npm install --save @ckeditor/ckeditor5-react @ckeditor/ckeditor5-build-classic

Después de la instalación, traté de ejecutar mi proyecto de la siguiente manera:

 npm start

Entonces, tengo errores:

ERROR en ./~/@ckeditor/ckeditor5-react/dist/ckeditor.js Error al analizar el módulo: C:\work_project\node_modules@ckeditor\ckeditor5-react\dist\ckeditor.js Token inesperado (5:29505) Es posible que necesite un cargador apropiado para manejar este tipo de archivo. SyntaxError: Token inesperado (5:29505) en Parser.pp$4.raise (C:\work_project\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15) en Parser.pp.inesperado (C:\ work_project\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10) en Parser.pp$3.parseIdent (C:\work_project\node_modules\webpack\node_modules\acorn\dist\acorn.js:2189:12 ) en Parser.pp$3.parsePropertyName (C:\work_project\node_modules\webpack\node_modules\acorn\dist\acorn.js:2052:101) en Parser.pp$3.parseObj (C:\work_project\node_modules\webpack\node_modules \acorn\dist\acorn.js:1988:14) en Parser.pp$3.parseExprAtom (C:\work_project\node_modules\webpack\node_modules\acorn\dist\acorn.js:1805:19) en Parser.pp$3. parseExprSubscripts (C:\work_project\node_modules\webpack\node_modules\acorn\dist\acorn.js:1715:21) en Parser.pp$3.parseMaybeUnary (C:\work_project\node_modules\webpack\node_modules\acorn\dist\acorn. js:1692:19) en Parser.pp$3.parseExprOps (C:\work_project\node_modules\webpack\node_modules\acorn\dist\acorn.j s:1637:21) en Parser.pp$3.parseMaybeConditional (C:\work_project\node_modules\webpack\node_modules\acorn\dist\acorn.js:1620:21)

El siguiente es mi webpack.config.js:

 module.exports = { entry: ["./src/index.js"], output: { path: __dirname, publicPath: "/", filename: "bundle.js" }, module: { loaders: [ { test: /\.json$/, loader: 'json-loader' }, { test: /\.css$/, loader: "css-loader" }, { exclude: /node_modules/, loader: "babel", query: { presets: ["react", "es2015", "stage-1"] } } ] }, resolve: { extensions: ["", ".js", ".jsx"] }, devServer: { disableHostCheck: true, // That solved it historyApiFallback: true, contentBase: "./" }, };

No sé por qué me salen estos errores. ¿Puedes ayudarme a resolver este problema? ¡Gracias!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!