-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
Description
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:
- Create a new Angular project with @angular/cli
ng new queue-error cd queue-error- Install Rx-Queue:
yarn add rx-queue - 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);
}
}
- start appliaction:
yarn start
Or use my reproduction repo:
https://github.com/CanKattwinkel/rx-queue-issue
yarn installyarn start- Now you get the error.
Reactions are currently unavailable