es6-module-loader Questions
1
Solved
I'm starting a new project in which I'd like to have ES6 style modules, however, I can't get it to run in a browser. I'm using Chrome.
I isolated the issue into very few lines of code.
Here are m...
Cirillo asked 27/10, 2018 at 15:10
2
Solved
I am very new to TypeScript and I expect I should be able to import my TS files without needing to specify that they are TS files.
I have to do
import {sealed} from "./decorators/decorators.ts";
...
Realize asked 8/4, 2016 at 22:58
5
Solved
I am currently writing a web application using the MEAN Stack, and am attempting to write code in ECMAScript 6 JavaScript; however, I am getting errors in both Chrome and Firefox when using import ...
Gilleod asked 4/11, 2015 at 8:22
2
Solved
I've been working through Webpack tutorial. In one of the sections, it gives the code example that contains one line of essence to this question:
export default class Button { /* class code here *...
Madden asked 13/3, 2016 at 13:49
2
I have tried all the way to run sample Module-Loader program based on YouTube but even after following with all the links in stackoverflow regarding this, am unable to fix the issue.Please find the...
Marxismleninism asked 9/10, 2016 at 4:3
1
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 ch...
Finfoot asked 15/11, 2017 at 6:44
1
Solved
Up to Node v8.5.0, publishing a module written in ES6 to NPMJS was a straightforward process: transpile the ES6 code using a tool like Babel, and publish to NPMJS the resulting lib directory, while...
Councilwoman asked 26/9, 2017 at 4:48
3
Solved
Is it possible to inject dependencies into ES2015 modules like in other programming languages like C# or Java? If I import a module I create a hard dependency to it and can not change it later at r...
Sweven asked 14/8, 2015 at 10:52
2
Solved
My project uses Webpack and es6 modules for most of the files. These files run in browser, and bundled by Webpack.
There are just a small number of files, that run in node. They are not touched by...
Rentier asked 19/9, 2016 at 2:46
1
Solved
I'm confused about what the module specifier in these statements refer to:
export {bar} from "foo";
import {bar} from "foo";
What does "foo" refer to? It can't be a file since it would be somet...
Walczak asked 5/7, 2017 at 15:38
2
There is no detalied explanation of what exactly es6 import and export do under the hood. Someone describe import as an read only view. Check the code below:
// lib/counter.js
export let counter =...
Kevakevan asked 27/6, 2016 at 18:11
1
Solved
You are supposed to wrap angularjs modules in an IIFE according to the styleguide, which we use
https://github.com/johnpapa/angular-styleguide/tree/master/a1#iife
my-dir.js
(function() {
'use s...
Oversell asked 3/5, 2017 at 18:20
2
i am making VideoPlayer react component with jwpalyer and i am using webpack es6 for loading module
webpack support npm module loading & there is no npm for jwplayer
so am trying to include jw...
Lionellionello asked 8/1, 2016 at 12:32
2
Solved
I understand the ES6 modules specification, the question is about its support. AFAIK, there are no browsers that implement this natively (see Browser compatibility here). Got a couple of questions ...
Gamber asked 25/8, 2016 at 11:40
1
Solved
I'm trying to use TypeScript in an AngularJS 1.x application.
My application already uses Webpack as a module loader, so I configured it to handle the TypeScript compilation (after renaming all *....
Turnstile asked 18/4, 2017 at 11:43
1
Solved
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 resu...
Heartily asked 7/3, 2017 at 13:38
1
I am wondering how can I spy/stub function on Jasmine if I am using ES6 imports/exports with babel?
import MobileDetect from 'mobile-detect';
it('should spy MobileDetect', () => {
MobileDetect...
Jennyjeno asked 1/3, 2016 at 12:46
4
I am trying to port some ES6 code I have written that uses systemjs + Babel.
I didn't have any problem porting most of the code.
However, I have some code that needs to dynamically load an ES6 mo...
Foreignism asked 19/3, 2016 at 15:36
2
Solved
I am contemplating moving from Dart to ES6 but Chrome doesn't seem to support the new import statement which is critical to me.
I used the (named export) code from this site: http://www.2ality.com...
Redolent asked 19/2, 2016 at 2:53
2
Solved
I've been thinking around this question lot of days and i have decided to ask the experts.
How browsers will handle the new import/export syntax ? I mean: will the modules be loaded asynchronously...
Batter asked 9/4, 2016 at 21:37
6
Solved
I have this situation where I am trying to import an existing library, which I'll call troublesome (using Webpack/Babel FWIW) and it has a global reference to jQuery in it which i am trying to reso...
Bendicta asked 3/7, 2015 at 1:41
1
Solved
I have a actions.js file that is exporting actions like this
export var toggleTodo = (id) => {
return {
type: 'TOGGLE_TODO',
id
}
}
but when i import it using es6 import i get error
Unca...
Ahlgren asked 23/11, 2016 at 10:49
3
Solved
Unfortunately my knowledge of JavaScript module loaders is still growing and I'm trying to understand their relationship to the new ES6 Modules. As far as I can tell using a module loader like Comm...
Dialytic asked 28/10, 2016 at 4:59
1
Solved
I have a module called fooModule. Inside this module, I import fooModule (itself):
import * as fooModule from './fooModule';
export function logFoo() {
console.log(fooModule)
}
When logFoo() i...
Tripartition asked 25/10, 2016 at 12:59
2
Solved
Let's say I have a module I want to re-export:
//exportme.js
export default 'EXPORTME';
export const test = () => console.log('test function');
//reexport.js
export * from './exportme.js'
Wh...
Lutist asked 29/9, 2016 at 21:1
© 2022 - 2024 — McMap. All rights reserved.