Git Product home page Git Product logo

Comments (27)

niieani avatar niieani commented on June 30, 2024 6

New release coming up in few days (~ 5 - 15).
aurelia/skeleton-navigation#714.

from loader-webpack.

spencewood avatar spencewood commented on June 30, 2024

I hate to bring this up again, but as I mentioned in the above ticket three weeks ago, this issue is blocking me from updating to the ^1.0.0 release of Aurelia with webpack.

Is there is an update, quick fix or workaround for this issue, I would be very appreciative.

from loader-webpack.

niieani avatar niieani commented on June 30, 2024

You could try using the older, [email protected] instead of 1.0.3. It might work, but might also introduce other bugs. Otherwise, the fix should land sometime in November.

from loader-webpack.

stevies avatar stevies commented on June 30, 2024

This problem appears to affect ES6 code also - not just TS. See:

aurelia/testing#40

Effectively blocking all testing of viewmodels, custom elements, etc.

from loader-webpack.

niieani avatar niieani commented on June 30, 2024

Yes, it's not written anywhere that it's TS specific. It's not related to the language.

from loader-webpack.

rokadias avatar rokadias commented on June 30, 2024

I might be having the same issue. WebpackLoader.loadModule fails with Unhandled rejection Error: Loading chunk 0 failed.

Snippets of relevant code looks like:

import {configure} from '../shared/validation';
import {$beforeEach} from 'async-await-jasmine';
import {bootstrap} from 'aurelia-bootstrapper-webpack';
import {ComponentTester, StageComponent} from 'aurelia-testing';

  $beforeEach(async () => {
    component = StageComponent
      .withResources('subjects/add-new-subject')
      .inView('<add-new-subject></add-new-subject>')
      .boundTo({});
    component.bootstrap(configure);
    await component.create(<any> bootstrap);
});
import {Aurelia} from 'aurelia-framework';
import {DOM} from 'aurelia-pal';

export function configure(aurelia: Aurelia) {
  'use strict';

  aurelia.use
    .standardConfiguration()
    .plugin('aurelia-validation');
}

from loader-webpack.

smax48 avatar smax48 commented on June 30, 2024

We have a very large BI application that is being written using Aurelia. This issue is effectively blocking all unit testing for UI components.

from loader-webpack.

niieani avatar niieani commented on June 30, 2024

I will be tackling this in the next week or two.

from loader-webpack.

stevies avatar stevies commented on June 30, 2024

Any update on this? Sorry to hassle you.

from loader-webpack.

niieani avatar niieani commented on June 30, 2024

@stevies It's almost ready, but something got in the way of me finishing it. Give it a few more days.

from loader-webpack.

stevies avatar stevies commented on June 30, 2024

Does your work on the new experimental skeleton mean that you now have no plans to fix this defect?

from loader-webpack.

niieani avatar niieani commented on June 30, 2024

@stevies the new Webpack plugins which are used by the nee skeleton is the fix for this defect. Aurelia Webpack Plugin, which is the culprit here, will be deprecated, but migration to the new set of Webpack plugins will be straight forward and very easy. For those using easy-webpack I'll simply create a major version bump on @easy-webpack/config-aurelia which contains all the changes.

from loader-webpack.

stevies avatar stevies commented on June 30, 2024

Cool. I'll wait on the new stuff being released.

from loader-webpack.

stevies avatar stevies commented on June 30, 2024

Any updates? I'm probably going to have to look at switching to using something other than Webpack in the short to medium term. Last time I looked at the CLI for building it was horrible to use, but I might have to live with that since not being able to test anything is a real problem.

from loader-webpack.

nashwaan avatar nashwaan commented on June 30, 2024

Its 2017, any update on this?

from loader-webpack.

niieani avatar niieani commented on June 30, 2024

Hey guys, I'm sorry I couldn't meet the deadline I've set for myself. The remaining workload isn't overwhelming, but I'm struggling to find time to work on it since December. We might be getting a new team member soon, so hopefully, if not by me, this should be resolved relatively soon.

from loader-webpack.

sludemann avatar sludemann commented on June 30, 2024

Bump.

from loader-webpack.

lukefx avatar lukefx commented on June 30, 2024

New release coming up in few days (~ 5 - 15).

Sorry to bother you about it @niieani but, any news about that?

from loader-webpack.

niieani avatar niieani commented on June 30, 2024

Sorry @lukefx, been working on it, on and off, as I've been busy and now I'm a bit ill too, which doesn't help.

from loader-webpack.

marktaling avatar marktaling commented on June 30, 2024

Came across the issue here as well. Is there any way we can help to speed along the fix? (Currently using the @easy-webpack from the skeletons)

from loader-webpack.

fnzr avatar fnzr commented on June 30, 2024

Same issue here. Just pinging.

from loader-webpack.

niieani avatar niieani commented on June 30, 2024

Fixed by aurelia/skeleton-navigation#714

from loader-webpack.

nashwaan avatar nashwaan commented on June 30, 2024

I still get errors with the new skeleton for tests that uses StageComponent in the browser.

Can someone else confirms whether StageComponent tests compiled by webpack and run in the browser (not jest) are working ok or not?

from loader-webpack.

waywardz avatar waywardz commented on June 30, 2024

@nashwaan They are not working for me.

from loader-webpack.

nashwaan avatar nashwaan commented on June 30, 2024

@niieani Can you reopen this issue?

from loader-webpack.

waywardz avatar waywardz commented on June 30, 2024

aurelia/testing#21 is also similar, and currently open, though not labeled as a bug.

from loader-webpack.

nashwaan avatar nashwaan commented on June 30, 2024

I just like to confirm the updated skeleton has solved the issue related to asynchronous StageComponent.

Thanks for your efforts @niieani .
😊

from loader-webpack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.