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...
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 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...
I used this es6-module-loader in an Angular 2 project and it worked great for loading TypeScript modules in real time in the web-browser. Now, I am upgrading this project to Angular 6, but here the dependencies are not met for the imports of the load...
I use ES6, Babel and webpack stack.  I have installed highcharts by npm (I prefer to use the official highcharts npm repo):  npm install highcharts-release --save   But, regular import (ES6) doesn't work as expected:  import highcharts from '...
Let's say I have a simple class like this in fileA.js:  class foo {     constructor(x) {         this.name = x     }      fooMethod(x) {         return x + 'hello';     } }   And I want to import and use fooMethod in fileB.js like this:...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.