2017-03-02 1 views
0

Je passe la chaîne html de mon backend pour réagir au composant où j'utilise react-html-parser pour convertir ma chaîne html en composant de réaction. mais obtenir une erreur.reaction-html-parser erreur inattendue

erreur dans ./~/entities/maps/entities.json module d'analyse du fichier a échoué: /Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/entities/maps/entities.json jeton inattendu (1: 9) Vous pouvez avoir besoin d'un chargeur approprié pour gérer ce type de fichier. SyntaxError: Jeton inattendu (1: 9) at Parser.pp $ 4.raise (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:2221:15) à Parser.pp. inattendu (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:603:10) à Parser.pp.semicolon (/ Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js: 581: 61) à Parser.pp $ 1.parseExpressionStatement (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:966:10) à Parser.pp $ 1 .parseStatement (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:730:24) à Parser.pp $ 1.parseBlock (/ Users/PrashantKumarKatariya/teabox_web/teabox_django /static/node_modules/acorn/dist/acorn.js:981:25) à Parser.pp $ 1.parseStatement (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:709:33) à Parser.pp $ 1.parseTopLevel (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:638:25) à Parser.parse (/ Users/PrashantKumarKatariya/teabox_web/teabox_django/statique/node_modules/acorn/dist/acorn.js: 516: 17) à Object.parse (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:3098:39) à Parser .parse (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/webpack/lib/Parser.js:902:15) à DependenciesBlock. (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/webpack/lib/NormalModule.js:104:16) à DependenciesBlock.onModuleBuild (/ Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/webpack-core/lib /NormalModuleMixin.js:310:10) à nextLoader (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25) à/Users/PrashantKumarKatariya/teabox_web/teabox_django /static/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5 à Storage.finished (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16) at /Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/graceful-fs/graceful-fs.js:78:16 à FSReqWrap.readFile AfterClose [comme onComplete] (fs.js: 445: 3) @ ./~/react-html-parser/~/htmlparser2/lib/Tokenizer.js 4: 16-54

erreur dans ./~/ entities/maps/legacy.json Échec de l'analyse du module: /Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/entities/maps/legacy.json Jeton inattendu (1: 9) Il se peut que vous ayez besoin d'un chargeur approprié pour gérer ce fichier type. SyntaxError: jeton inattendu (1: 9) à Parser.pp 4.raise $ (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:2221:15) à Parser.pp. inattendu (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:603:10) à Parser.pp.semicolon (/ Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js: 581: 61) à Parser.pp $ 1.parseExpressionStatement (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:966:10) à Parser.pp $ 1 .parseStatement (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:730:24) à l'adresse Parser.pp $ 1.parseBlock (/ Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/gland /dist/acorn.js:981:25) à Parser.pp $ 1.parseStatement (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:709:33) à Parser.pp $ 1.parseTopLevel (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:638:25) à l'adresse Parser.parse (/ Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js: 516: 17) à Object.parse (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:3098:39) à Parser.parse (/ Users/PrashantKumarKatariya/teabo x_web/teabox_django/static/node_modules/webpack/lib/Parser.js: 902: 15) à DependenciesBlock. (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/webpack/lib/NormalModule.js:104:16) à DependenciesBlock.onModuleBuild (/ Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/webpack-core/lib /NormalModuleMixin.js:310:10) à nextLoader (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25) à/Users/PrashantKumarKatariya/teabox_web/teabox_django /static/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5 à Storage.finished (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16) at /Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/graceful-fs/graceful-fs.js:78:16 à FSReqWrap.readFile AfterClose [comme onComplete] (fs.js: 445: 3) @ ./~/react-html-parser/~/htmlparser2/lib/Tokenizer.js 5: 16-52

erreur dans ./~/ entities/maps/xml.json Échec de l'analyse du module: /Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/entities/maps/xml.json Jeton inattendu (1: 6) Il se peut que vous ayez besoin d'un chargeur approprié pour gérer ce fichier type. SyntaxError: Jeton inattendu (1: 6) à Parser.pp $ 4.raise (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:2221:15) à Parser.pp. inattendu (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:603:10) à Parser.pp.semicolon (/ Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js: 581: 61) à Parser.pp $ 1.parseExpressionStatement (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:966:10) à Parser.pp $ 1 .parseStatement (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:730:24) à Parser.pp $ 1.parseBlock (/ Users/PrashantKumarKatariya/teabox_web/teabox_django /static/node_modules/acorn/dist/acorn.js:981:25) à Parser.pp $ 1.parseStatement (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:709:33) à Parser.pp $ 1.parseTopLevel (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:638:25) à Parser.parse (/ Users/PrashantKumarKatariya/teabox_web/teabox_django/statique/node_modules/acorn/dist/acorn.js: 516: 17) à Object.parse (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:3098:39) à Parser .parse (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/webpack/lib/Parser.js:902:15) à DependenciesBlock. (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/webpack/lib/NormalModule.js:104:16) à DependenciesBlock.onModuleBuild (/ Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/webpack-core/lib/NormalModuleMixin.js: 310: 10) at nextLoader (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25) at/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/webpack-core/lib/NormalModuleMixin.js: 259: 5 à Storage.finished (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16) à /Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/graceful-fs/graceful-fs.js:78:16 à FSReqWrap.readFileAfterClose [comme uncomplete] (fs.js: 445: 3) @ ./~/ reac-html-parser/~/htmlparser2/lib/Tokenizer.js 6: 16-49

ERREUR dans ./~/entities/maps/deco de.json Échec de l'analyse du module: /Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/entities/maps/decode.json Jeton inattendu (1: 4) Il se peut que vous ayez besoin d'un chargeur approprié pour gérer ce type de fichier. SyntaxError: Jeton inattendu (1: 4) at Parser.pp $ 4.raise (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:2221:15) à Parser.pp. inattendu (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:603:10) à Parser.pp.semicolon (/ Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js: 581: 61) à Parser.pp $ 1.parseExpressionStatement (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:966:10) à Parser.pp $ 1 .parseStatement (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:730:24) à Parser.pp $ 1.parseBlock (/ Users/PrashantKumarKatariya/teabox_web/teabox_django /static/node_modules/acorn/dist/acorn.js:981:25) à Parser.pp $ 1.parseStatement (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:709:33) à Parser.pp $ 1.parseTopLevel (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:638:25) à Parser.parse (/ Users/PrashantKumarKatariya/teabox_web/teabox_django/statique/node_modules/acorn/dist/acorn.js: 516: 17) à Object.parse (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/acorn/dist/acorn.js:3098:39) à Parser .parse (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/webpack/lib/Parser.js:902:15) à DependenciesBlock. (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/webpack/lib/NormalModule.js:104:16) à DependenciesBlock.onModuleBuild (/ Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/webpack-core/lib /NormalModuleMixin.js:310:10) à nextLoader (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25) à/Users/PrashantKumarKatariya/teabox_web/teabox_django /static/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5 à Storage.finished (/Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16) at /Users/PrashantKumarKatariya/teabox_web/teabox_django/static/node_modules/graceful-fs/graceful-fs.js:78:16 à FSReqWrap.readFile AfterClose [as oncomplete] (fs.js: 445: 3) @ ./~/entities/lib/decode_codepoint.js 1: 16-46

Répondre