This isn't a priority at all, but this has been bugging me for a while. I hate to even post it on here because I'm completely confused, but maybe someone else will understand it. A few things to note before I get into the spiel: This is from a Udemy
Hey this is more of brainstorming help I think, so sorry if it offends the rules. Just not sure where to ask this. Backstory I'm working with React, and using Babel to transpile ES6/7. What I'm trying to do is have a component (another class) call a
I want to do so when I click the button the variable 'balance' grows up by 1 and displays after the 'Balance: ' word. My code compiles, but displayed variable is at 0 even if I click my button. import React, { Component } from "react"; export de
I was wondering if there is a way to configure webpack with babel and nodemon. I I pretty much searched the web but found nothing helpful or it may be me because i am pretty much new to build tools. I have this script in my package.json: "start"
This question already has an answer here: Is it possible to destructure an object and generate a new object in a single statement? [duplicate] 2 answers Is it possible to use destructuring assignment syntax to make it possible to extract data objects
See Update 2 below for what the real problem seems to be. I am having trouble getting a React JS to work in some browsers. In Chrome it worked perfectly. In Firefox 47.0.1 I got this error: SyntaxError: missing } after property list In IE 11 I get th
At latest React 15.5.1 package, If using babel react present to resolve jsx file, will appears following warnings: Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead. warning.js:36 Warni
I was looking at the wiki page of vue.js and saw this: When compared to React development, Vue can be integrated to an existing web application much more easily. Normally, a web application can start using Vue immediately by simply including the Vue.
I am learning react and here is my simple project sturcture: my_project --node_modules --index.js --index.html --package.json --.babelrc index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8">
Given this function function* backflip(query) { return yield 123; } And this test describe('backflip', () => it('should do that ^', () => let handlerInstance = handler(); expect(handlerInstance.next().value).to.equal(123); expect(handlerInstance.nex
I´ve written the following code using ReactJs´s JSX syntax: import { Link } from 'react-router'; class SidebarMenuItem extends React.Component { render() { var href = (this.props.submenu ? 'javascript:' : {<Link to="mod/admin" + this.props.li
I've recently added Babel to my GAE/webapp2 site, and it works, but I'm confused about the proper way to get the locale. In this answer, he gets the locale with self.request.get('locale', 'es_ES') but this only seems to work if something like ?locale
I use react to build my library of components. I need to have an index.js to import all components in one place. Something like this: MyComponents/ Button.js Label.js index.js Inside the index.js I tried to do next: // this export nothing export {def
Attempting to build a basic Angular todo application w/ES6. As far as I can tell, the controller should be registering, but I continue to get the title error when routed to the associated state. *App.js referenced in index is the Babel transpiled Web
How to enable finally method support if i'm using babel-polyfill in my project build on React-Redux stackThe ES6 standard does not support the finally phase of a promise, as T.J. Crowder mentioned in the comments to your question. If you want that ki
This question already has an answer here: JavaScript: Loop through all the elements returned from getElementsByTagName 6 answers I'm building an app with Babel/ES6. I want to disable all form elements for a view-only version of it, so I did this: let
Update: I changed the API from fetch to XMLHttpRequest and I still see the problem. According to the console logs the delay is between "readyState 1"(i.e. OPENED) and "readyState 2"(i.e HEADERS_RECEIVED). Also, maybe it is worth mentio
I am getting the following error when I am trying to run "gulp" in my vue.js project after I have added an image tag in my Home.vue component [ <img class="img-fluid" src="../images/logoWhite.png"> ] : stream.js:74 thro
I'm in the process of translating a Open Source project from Chinese to English, and I've used i18n (in this case babel) to separate the code from both English and Chinese translations. Everything's done, except for a rather large number of inline co
I want to add some rules for props: import React, { Component } from 'react' export default class App extends Component { static propTypes = { name: React.PropTypes.string.isRequired }; render() { return( ) } } But I got this an error: Warning: Faile
so when I install these packages locally they work, but when installed globally (and removed them locally) npm i babel-cli -g npm i -g babel-preset-es2015 npm i -g babel-preset-es2015-node seems like that flag isn't setting es2016-node to look in the
I wanted to use babel to transform the ES6 output from typescript and used this syntax: var gulpBabel = require('gulp-babel'); var ts = require('gulp-typescript'); // ... function compileTypescript(fileSpec, folder) { var options = {jsx: 'react', mod
I run a job every hour that can send an email to users. When the email is sent, it needs to be in the language set by the user (saved in the db). I can't figure out a way to set a different locale outside of a request context. Here is what I would li
I have been trying to use babel on my iMac (OSX Mavericks, I installed python and babel using MacPorts) but I get this error message : [...] writing PO template file to ./locale/messages.pot Traceback (most recent call last): File "/usr/local/bin/pyb
I have Flask, Babel and Flask-Babel installed in the global packages. When running python and I type this, no error >>> from flaskext.babel import Babel >>> With a virtual environment, starting python and typing the same command I see &g
I encountered a problem with unit tests when use i18 in my project. My project uses framewoks i18 and webapp2 The function uses the translation by i18. But when I test, I get the error - missing global variable request. For example it is: from unitte
I cant get a basic translationto work in Flask Babel. Here are my steps. I have this in a page {{_("Hello")}} I run this command. pybabel extract -F babel.cfg -o messages.pot . I then run this command for German. pybabel init -i messages.pot -d
I am using Emacs 24/Org 7.8 and am having some issues with org-babel. I want to call a block of code with #+call: #+name: square(x) #+begin_src python return x*x #+end_src #+call: square(x=6) Evaluating #+call with C-c C-c gives the message: variable
I am currently trying to use Babel to generate a set of static html pages in different languages using Jinja2 within a simple script (not as part of a web app) I am at the point where I need to extract the messages for translation and I know that I a
We're evaluating Babel 0.9.5 [1] under Windows for use with Python 2.6 and have the following questions that we we've been unable to answer through reading the documentation or googling. 1) I would like to use an _ like abbreviation for ungettext. Is