Unable to find template: react when using neu create <appname> --template react - neutralinojs

I've been trying to use Neutralino to build a lightweight desktop app.
Following this article: https://medium.com/neutralinojs/neutralinojs-react-starter-template-f504b93a0294
I encountered an error when I tried to use the following code:
neu create testName --template react
The error says: Unable to find template: react
I installed neu-cli using npm i -g #neutralinojs/neu with no errors

It looks like templates are being removed in favor of a more minimalistic default template. The docs on their page (including the start template) are for version < 2.0.0.
As of version 2.0.0, templates have been removed as a valid CLI command and I've yet to find a good replacement.
For the time being use neu create *project name* for the minimal template
Removal of templates source: "we have removed all the templates..."
See this discussion

Related

NativeScript-Vue Webpack Can't resolve 'styles/style-one' on setup

I'm new to NativeScript and I'm trying to create a new app using vue, following the instructions here: https://nativescript-vue.org/en/docs/getting-started/quick-start/
NOTE: I'm using vue-cli v3, so instead of vue init nativescript-vue/vue-cli-template <project-name>, I had to use vue create <project-name> then vue add vue-cli-plugin-nativescript-vue.
I am getting the following error when doing tns preview on my android device:
Does anyone know what I'm doing wrong? I'm trying to create a simple mobile app, and I'm getting an error on the setup phase. Thank you!
Specs:
node v10.20.1
vue-cli v3.11.0
tns v6.5.0
Reading a bit more in this article for the vue-cli-plugin-nativescript-vue plugin:
https://github.com/nativescript-vue/vue-cli-plugin-nativescript-vue
Renaming my CSS files from style-one.css to style-one.native.css for mobile did the trick. I'm able to successfully run the app in my phone now.

How to develop NPM module for Ionic

I am developing library for Ionic 2, that should be installed via NPM, but i can't do this in classic way. If you want to develop module you can use npm link command to link module to your project where you want test and develop it, but in Ionic it everytime fall on compilation error, when is module linked using npm link.
This is error that i get evertime:
[10:14:15] Error: Could not resolve entry (./.tmp/app/main.dev.js)
at /Users/daniel/ionic/cache-test/node_modules/rollup/dist/rollup.js:8602:28
at process._tickCallback (internal/process/next_tick.js:103:7)
So, is there any trick how to develop and test NPM module in Ionic 2?
Thanks.
We did experiment with this, to share ngrx-based core module in between a web Angular2 app and an Ionic2 mobile app:
https://github.com/benorama/ngrx-demo-apps
However, we did not manage to make it work through npm link, only with npm pack/install.
The trick is to define your external lib in a custom rollup.config.js. You can find more info here:
http://ionicframework.com/docs/v2/resources/third-party-libs/
http://ionicframework.com/docs/v2/resources/app-scripts/

Intellij Idea run configuration with ember.js on ubuntu

I am having a problem with the run configuration of ember on intellij idea on ubuntu 14.
I have installed ember using npm and I have followed a tutorial on my teacher's site on how to correctly configure intellij to use both maven and ember. I had no problem configuring the first part (maven), however at the second part, which was basically the same, I couldn't find the file he was refering to. Here is the picture:
tutorial
And here is the error:
[error]
Error: No ember-cli-build.js found. Please see the transition guide: https://github.com/ember-cli/ember-cli/blob/master/TRANSITION.md#user-content-brocfile-transition.
at CoreObject.module.exports.Task.extend.setupBroccoliBuilder (/home/user/.nvm/versions/node/v5.0.0/lib/node_modules/ember-cli/lib/models/builder.js:56:13)
at CoreObject.module.exports.Task.extend.init (/home/user/.nvm/versions/node/v5.0.0/lib/node_modules/ember-cli/lib/models/builder.js:89:10)
at CoreObject.superWrapper [as init] (/home/user/.nvm/versions/node/v5.0.0/lib/node_modules/ember-cli/node_modules/core-object/lib/assign-properties.js:32:18)
at CoreObject.Class (/home/user/.nvm/versions/node/v5.0.0/lib/node_modules/ember-cli/node_modules/core-object/core-object.js:32:33)
at CoreObject.module.exports.Task.extend.run (/home/user/.nvm/versions/node/v5.0.0/lib/node_modules/ember-cli/lib/tasks/build.js:15:19)
at /home/user/.nvm/versions/node/v5.0.0/lib/node_modules/ember-cli/lib/commands/build.js:32:24
at lib$rsvp$$internal$$tryCatch (/home/user/.nvm/versions/node/v5.0.0/lib/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:1036:16)
at lib$rsvp$$internal$$invokeCallback (/home/user/.nvm/versions/node/v5.0.0/lib/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:1048:17)
at /home/user/.nvm/versions/node/v5.0.0/lib/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:331:11
at lib$rsvp$asap$$flush (/home/user/.nvm/versions/node/v5.0.0/lib/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:1198:9)
Could you please help me find the file he was referring to in the tutorial (since "usr/bin" doesn't have any "ember" files)?
New error about permissions:
error
Do you have a brocfile.js in your project? If so, rename it to ember-cli-build... Apparently you installed a newer version of ember... You might want to re-run ember init
Have a look at https://github.com/ember-cli/ember-cli/blob/master/TRANSITION.md#user-content-brocfile-transition as well for more information.
Depending on how you installed ember/ember-cli it would lie under (if you don't use nvm):
~/.npm/
or
in your project structure:
<project_dir>/node_modules and <project_dir>/bower_components
Maybe you didn't initialize ember project. Run ember init in webapp directory

Noflo example : Running inside browser

We are trying to get a simple noflo example running inside a browser as described the noflojs.org/documentation/fbp/ [Language for Flow-Based Programming]
We tried to refer to some examples available on GitHub
github.com/noflo/noflo-browser-app
github.com/noflo/noflo-websocket
github.com/bergie/flowcopter
We tried npm install; grunt build. We get the below error and are not able to proceed beyond this:
Running "noflo_browser:build" (noflo_browser) task install
noflo/noflo#master Warning: dns lookup failed Use --force to
continue.
Any idea what are we missing ?
At the time of the question the build setup for the projects mentioned was still based on Component.js which had become unmaintained.
Nowadays we're using NPM for installing dependencies and WebPack for browser builds.
Suggested fix would be to fetch the latest versions of these repos, do npm install and build again. This will bring the build up to spec.
If you're using the old build setup in your own projects, this PR is a handy example on what to change to go from Component.js to WebPack.

How to use latest version of nodejs on azure mobile-service runtime

I am trying to integrate google-api-nodejs-client with azure mobile-services. I get following runtime error trying to use sample code from googleapis:
Error: Unable to load endpoint plus("v1"): Cannot read property 'prototype' of undefined
This error seems to be due to reason that googleapis only support nodejs version 0.10 and higher, whereas azure mobile-services are running nodejs version 0.8.28.
Is there a way I can use more latest version of nodejs on azure mobile-service?
A workaround suggested by David Ebbo on Azure Support Site
You may want to try something like this as a workaround:
at the root of the repo, you'll find a .deployment file that has:
[config]
command = ..\ZumoDeploy.cmd
Change it to
[config]
command = deploy.cmd
And create a deploy.cmd next to it containing:
set NPM_JS_PATH=%ProgramFiles(x86)%\npm\1.4.9\node_modules\npm\bin\npm-cli.js
..\ZumoDeploy.cmd
Commit both files and push.

Resources