Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.

Barrel error with webpack (0.0.39) #315

Closed
@maxkunitsa

Description

@maxkunitsa

Short description of the problem:

In version 0.0.39 rollup bundler works correct, but with webpack bundler i have error in browser console: 'Error: Cannot find module "../../common/services/index/"(…)'. This file is barrel.

What behaviour are you expecting?

Correct build both with rollup or webpack without any error's in console.

Steps to reproduce:

  1. Create 'barrel' file in ionic project
  2. Run 'ionic serve' with [email protected] and webpack as bundler
  3. Browser started with white screen and error in console: 'Error: Cannot find module "../../common/services/index/"(…)'

Example of barrel (https://angular.io/docs/ts/latest/guide/glossary.html#!#sts=Barrel)

//common/services/index.ts
export * from './utils/color.utils';
export * from './utils/localstorage.utils';
export * from './utils/math.utils';
export * from './utils/uuid.utils';

Which @ionic/app-scripts version are you using?
0.0.39

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
Dont have any ideas

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions