oraad / cordova-react-template Goto Github PK
View Code? Open in Web Editor NEWCordova Template with React
License: MIT License
Cordova Template with React
License: MIT License
Hi folks,
When trying to spin this up, I get as far as cloning from template cordova create CordovaReactApp au.edu.faims.CordovaReactApp CordovaReactApp --template cordova-react
, and runningcordova platform add android
and it returns Current working directory is not a Cordova-based project.
I suspect there are some version games going on here. Thoughts on how I can improve replication/fix issue?
OS : Linux
Command : cordova platform add browser / npm start
Output :
damien@damien-P553UA:~/Dev/MyReactApp$ npm start
[email protected] start /home/damien/Dev/MyReactApp
node assets/scripts/start-dev.jsSetting up Symbolic links...
(node:3592) UnhandledPromiseRejectionWarning: TypeError: dirent.isDirectory is not a function
at fs.readdirSync.filter (/home/damien/Dev/MyReactApp/assets/scripts/symlink.js:114:36)
at Array.filter ()
at listPlatforms (/home/damien/Dev/MyReactApp/assets/scripts/symlink.js:114:10)
at Object.createSymlink [as create] (/home/damien/Dev/MyReactApp/assets/scripts/symlink.js:40:56)
at Object.start (/home/damien/Dev/MyReactApp/assets/scripts/dev-env.js:31:13)
at Object. (/home/damien/Dev/MyReactApp/assets/scripts/start-dev.js:11:8)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
(node:3592) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:3592) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
^CStopping Dev Server...
Cleaning up Symbolic Links...
/home/damien/Dev/MyReactApp/assets/scripts/symlink.js:66
if (dirent.isSymbolicLink()) {
^TypeError: dirent.isSymbolicLink is not a function
at fs.readdirSync.forEach.dirent (/home/damien/Dev/MyReactApp/assets/scripts/symlink.js:66:24)
at Array.forEach ()
at Object.cleanupSymlink [as cleanup] (/home/damien/Dev/MyReactApp/assets/scripts/symlink.js:64:10)
at Object.stop (/home/damien/Dev/MyReactApp/assets/scripts/dev-env.js:143:13)
at process. (/home/damien/Dev/MyReactApp/assets/scripts/start-dev.js:22:16)
at emitNone (events.js:106:13)
at process.emit (events.js:208:7)
at Signal.wrap.onsignal (internal/process.js:208:44)
I'm trying to run this, starting from a fresh template.
At first I had complaints about files already existing in www
, but then I deleted everything in that directory.
I am still getting the error Error: dirent.isSymbolicLink is not a function
; any idea how to resolve this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.