When trying to run the yeoman generator for generating an office add in I get 'SyntaxError: Unexpected token a in JSON at position 102' - office-addins

I am trying to use the yeoman installer following this example: https://learn.microsoft.com/en-us/office/dev/add-ins/quickstarts/excel-quickstart-jquery?tabs=yeomangenerator.
I have the latest LTS version of node, installed the latest yeoman. Everything seems fine.
But when I try to run yo office I get:
Error office
SyntaxError: Unexpected token a in JSON at position 102
What could be the problem?

Related

Uncaught SyntaxError in Jenkins but building/running fine in Local

I have a React app with webpack that is building and running fine in local. I am currently testing with a stripped down version that just renders a header text.
However, when I deploy through Jenkins to an S3 bucket, I am getting Uncaught SyntaxError: Invalid or unexpected token (at bundle.js:2:55245) in the console. No build errors in Jenkins that stand out to me, other than warnings that I also get when I build locally. The error also doesn't specify a spcific token
Any insights or advice on avenues to pursue?

How to run a full stack application using kotlin?

I want to run a full stack web application with Kotlin + react + reduce. I tried to use the create-react-kotlin-app app but it does not work with reduce.
Now I am trying to use the Thinkter: A Kotlin Full-stack Application Example. I download the zip, unzip it and run:
./gradlew backend:run
./gradlew frontend:run
When I open the browser (http://localhost:8080) I get a blank page and in the browser console:
Uncaught SyntaxError: Unexpected token <
I am using Linux Mint, java version "1.8.0_181" and node v8.12.0.

Yarn on Chrome: Uncaught SyntaxError: Unexpected token <

I have a working yarn react project on a local machine.
yarn start
Works, yields a website that renders on the local host.
I have a server that was running the same project. However, I stopped the running website, and restarted with the following commands:
yarn install
yarn run build
yarn run prod
And I get the following error when accessing the website through chrome (on the production server):
Ucaught SyntaxError: Unexpected token <
What I am trying to do is diagnose where the problems could be arising. To summarize:
1) the project runs on the local machine (mac osx) with yarn start
2) I place the project on the linux box, install, build and run and everything seems to be sending to chrome; however, chrome yields this error
I am not sure where the problem could be. Localizing it to a set of possible problems would, I think, make it easy to solve (or ask better questions).
That error typically happens when you are getting a HTML page for a <script> tag src's address.
Open the URLs of the scripts each on a different tab (or check the network tab of the developer tools), those URLs are probably returning a 404 (or some other error code) and a HTML error page.
So your code tries to parse those HTML error pages as JavaScript code, thus yielding that error.
It gets Uncaught SyntaxError: Unexpected token < because it tries to parse the HTML content (e.g. <html> ...) as JavaScript code.
For a demo, run the snippet below and see the error at the console.
<script type=text/javascript src=https://stackoverflow.com></script>
Check the console: "Uncaught SyntaxError: Unexpected token <"

Got an error while using Sencha touch 2.1.1 CDN

I've built my app using sencha touch 2.0 CDN and now I am trying to migrate to 2.1.1. But, I am getting an error - Uncaught SyntaxError: Unexpected token ) in sencha-touch-all.js:21.
CDN URL is: http://cdn.sencha.com/touch/sencha-touch-2.1.1/sencha-touch-all.js
Please let me know why I am getting this error?
I recommend you to use the sencha CMD to generate the project. That would provide you with a lot of commands including 'sencha app upgrade' which updates your app with a newer sdk.
http://docs.sencha.com/touch/2.2.1/#!/guide/command
http://docs.sencha.com/touch/2.2.1/#!/guide/command_app-section-upgrading-your-application

Not able to build native package in sencha touch

I have downloaded latest sencha gpl 2.1.1 and sdk cmd 3.0.2, So here i am able to generate sample app as in the sencha website. but i am not able to build native package. it is throwing error in command prompt like this com.sencha.exceptions.BasicException:
The following error occured while executing this line:
D:\Sench_Touch\sencha-touch-2.1.1-gpl\DemoApp.sencha\app\build-impl.xml:109:
The following error occurred while executing this line:
jar:file:/C:/Users/User%202/bin/Sencha/Cmd/3.0.2.288/sencha.jar!/com/sencha/ant/
antlib.xml:364: shellscript returned: 1
Can any body tell why it is giving error how to resolve this issue?
You need to make sure compass is installed before compiling.
You can skip it with adding skip.sass=1 to your sencha.cfg files.

Resources