I am having a hard time trying to get the lodash modules imported. I've setup my project using npm+gulp, and keep hitting the same wall. I've tried the regular lodash, but also lodash-es.  The lodash npm package: (has an index.js file in th...
I am trying to use Webpack with Babel to compile ES6 assets, but I am getting the following error message:  You may need an appropriate loader to handle this file type. | import React from 'react'; | /* | import { render } from 'react-d...
Is it possible to import javascript module from external url in ES6?  I tried (using babel-node):  import mymodule from 'http://...mysite.../myscript.js'; // Error: Cannot find module 'http://...mysite.../myscript.js'...
EDIT: for more background, also see the discussion on ES Discuss.    I have three modules A, B, and C. A and B import the default export from module C, and module C imports the default from both A and B. However, module C does not depend on the value...
With ES2015 syntax, we have the new import syntax, and I've been trying to figure out how to import everything exported from one file into another, without having it wrapped in an object, ie. available as if they were defined in the same file.  S...
This is what I get when I try to run webpack: the error I get is:     "ERROR in ./v3/app/styles/main.scss   Module parse failed: /Users/vovina/widget-login-react/v3/app/styles/main.scss Unexpected character '@' (1:0)   You may need an app...
I'm trying to convert an old JavaScript library into ES6 compatible module. The library is tracking.js (https://github.com/eduardolundgren/tracking.js/blob/master/build/tracking.js) but all my results ends with: Cannot read property 'xxx'...
I'm not sure what I'm missing here. I'm working on a project using jspm and es6-module-loader. I've got an module defined as follows:  import hooks from './hooks'; import api from './api'; import tools from './tool...
What's the ES6 equivalent for module.exports  I want to get the value of foo from an import statement  module.exports = {     foo: function (a) {     } }   Tried:  export default {     foo: function (a) {     } }   The way first one is imported i...
This is most likely some typo but I've been trying to fix it for the last hour and came up with nothing.  I have a file called app/reducers/index.js:  export viewportSize from "./viewportSize";   app/reducers/viewportSize.js is simply:  e...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.