Skip to content

Bundle Error  #25

@CanKattwinkel

Description

@CanKattwinkel

Hello,

I tried to use your lib in an Angular project. Sadly it doesn't work due to some build error.


ERROR in ./node_modules/rx-queue/bundles/rx-queue.umd.js
Module not found: Error: Can't resolve '../../package.json' in '~/queue-error/node_modules/rx-queue/bundles'

Steps to reproduce:

  1. Create a new Angular project with @angular/cli ng new queue-error
  2. cd queue-error
  3. Install Rx-Queue: yarn add rx-queue
  4. Copy code to the app.component.ts:
import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  title = 'queue-error';

  ngOnInit() {
    const queue = new RxQueue()
    queue.next(1)
    queue.next(2)
    queue.next(3)

    queue.subscribe(console.log);
  }

}
  1. start appliaction: yarn start

Or use my reproduction repo:
https://github.com/CanKattwinkel/rx-queue-issue

  1. yarn install
  2. yarn start
  3. Now you get the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions