Ngx-tawk throwing error Uncaught Error: Template parse errors: Parser Error: Unexpected token 'ID' - angular6

I added the ngx-tawk template to my app.component.html to my lazy-loaded application.
<!--app.component.html-->
<router-outlet></router-outlet>
<ngx-tawk [id]="XXXXXXXXXXXXXXXXXXX"></ngx-tawk>
I get the error
Uncaught Error: Template parse errors:
Parser Error: Unexpected token 'XXXXXXXXXXXXX' at column 2 in [5bb4aa97b033e9743d021435] in ng:///AppModule/AppComponent.html#2:10 ("ent below is only a placeholder and can be replaced.-->
<router-outlet></router-outlet>
<ngx-tawk [ERROR ->][id]="XXXXXXXXXXXXX"></ngx-tawk>
The XXXXXXXXXXXXX is id provided by tawk.io

Related

Dashboard ninja trace back error when open configuration

in Odoo 13, I am facing this error when open configuration in Dashboard ninja:
SyntaxError: Unexpected token F in JSON at position 0
at JSON.parse (<anonymous>)
at Class.init (http://localhost:8069/web/content/329-72f1291/web.assets_backend.js:2478:363)
at Class.init (http://localhost:8069/web/content/329-72f1291/web.assets_backend.js:2479:328)
at Class.init (http://localhost:8069/web/content/319-8bc33a0/web.assets_common.js:3864:371)
at new Class (http://localhost:8069/web/content/319-8bc33a0/web.assets_common.js:3862:65)
at Class._createViewController (http://localhost:8069/web/content/329-72f1291/web.assets_backend.js:442:658)
at http://localhost:8069/web/content/329-72f1291/web.assets_backend.js:447:169
Can you help?

Uncaught (in promise) SyntaxError: Unexpected end of JSON input - ReactJS

Uncaught (in promise) SyntaxError: Unexpected end of JSON input
Hi
I am getting this error when I fetch data from JSON file.
Error is: "Uncaught (in promise) SyntaxError: Unexpected end of JSON input"
I am using my local server and file is downloaded in local server (CODE and FILE both are on same server)
Using this code:
const API = './data/posts.json';
componentDidMount(){
fetch(API)
.then(response => response.json())
.then( (data) => { console.log("data - ", data) } )
}
and JSON file is https://gorest.co.in/public-api/users?_format=json&access-token=PybsLaeEimY-agXScsQ-bFDdkFHDFH_sQMo3
but I have downloaded this file on local server
Thanks in Advance
Please Help

RESTful - CodeIgniter 3.1.5 - Fatal Error, Call to undefined function factory

I'm trying to make "RESTful" using CodeIgniter 3.1.5 and libraries https://github.com/chriskacerguis/codeigniter-restserver
I get this error:
Fatal error: Call to undefined factory function () in D:\AppServ\www\restful\application\libraries\REST_Controller.php on line 857
A PHP Error was encountered
Severity: Error
Message: Call to undefined function factory ()
Filename: libraries/REST_Controller.php
Line Number: 857
Backtrace:
(Not my code, but it is example from codeigniter-restserver)
enter in line 61 of autoload.php
$autoload['libraries'] = array('database','Format');
I solved it that way.

Webpack breaks when i include node-rsa library

When I try to include the node-rsa library with Webpack, as so:
import NodeRSA from 'node-rsa';
I get the following error:
ERROR in ./~/constants-browserify/constants.json
Module parse failed: /home/hencic00/Dropbox/Documents/Camelot/node_modules/constants-browserify/constants.json Unexpected token (2:12)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:12)
at Parser.pp$4.raise (/home/hencic00/Dropbox/Documents/Camelot/node_modules/acorn/dist/acorn.js:2221:15)
at Parser.pp.unexpected (/home/hencic00/Dropbox/Documents/Camelot/node_modules/acorn/dist/acorn.js:603:10)
at Parser.pp.semicolon (/home/hencic00/Dropbox/Documents/Camelot/node_modules/acorn/dist/acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (/home/hencic00/Dropbox/Documents/Camelot/node_modules/acorn/dist/acorn.js:966:10)
at Parser.pp$1.parseStatement (/home/hencic00/Dropbox/Documents/Camelot/node_modules/acorn/dist/acorn.js:730:24)
at Parser.pp$1.parseBlock (/home/hencic00/Dropbox/Documents/Camelot/node_modules/acorn/dist/acorn.js:981:25)
at Parser.pp$1.parseStatement (/home/hencic00/Dropbox/Documents/Camelot/node_modules/acorn/dist/acorn.js:709:33)
at Parser.pp$1.parseTopLevel (/home/hencic00/Dropbox/Documents/Camelot/node_modules/acorn/dist/acorn.js:638:25)
at Parser.parse (/home/hencic00/Dropbox/Documents/Camelot/node_modules/acorn/dist/acorn.js:516:17)
at Object.parse (/home/hencic00/Dropbox/Documents/Camelot/node_modules/acorn/dist/acorn.js:3098:39)
at Parser.parse (/home/hencic00/Dropbox/Documents/Camelot/node_modules/webpack/lib/Parser.js:902:15)
at DependenciesBlock.<anonymous> (/home/hencic00/Dropbox/Documents/Camelot/node_modules/webpack/lib/NormalModule.js:104:16)
at DependenciesBlock.onModuleBuild (/home/hencic00/Dropbox/Documents/Camelot/node_modules/webpack-core/lib/NormalModuleMixin.js:310:10)
at nextLoader (/home/hencic00/Dropbox/Documents/Camelot/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25)
at /home/hencic00/Dropbox/Documents/Camelot/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5
at Storage.finished (/home/hencic00/Dropbox/Documents/Camelot/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16)
at /home/hencic00/Dropbox/Documents/Camelot/node_modules/graceful-fs/graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
# ./~/node-rsa/src/NodeRSA.js 10:16-36
There doesn't seem to be any existing questions on this topic.
Any ideas?
Just add json loader to your webpack config.

Angular - unexpected token error when colon in time string

Here is my error:
Error: [$parse:syntax] Syntax Error: Token ':' is an unexpected token at column 3 of the expression [06:20] starting at [:20].
The output is a JSON time string, eg: "5:30"
My HTML:
<input value="{{details.order.earlyPickup}}" ng-model="details.order.earlyPickup">
I can't figure out how to fix this so I don't get the error, can anyone help?