angular2-state-machine icon indicating copy to clipboard operation
angular2-state-machine copied to clipboard

no such file or directory, open '...angular2-state-machine/core.js.map'

Open leydar opened this issue 8 years ago • 3 comments

Expected Behavior

The state machine should be available.

Actual Behavior

Using in an Ionic/Angular app it crashes at runtime with the error: Error: Module build failed: Error: ENOENT: no such file or directory, open '/test/node_modules/angular2-state-machine/core.js.map' at Object. (http://localhost:8101/build/vendor.js:123094:7) at webpack_require (http://localhost:8101/build/vendor.js:55:30) at Object.193 (http://localhost:8101/build/main.js:44:86) at webpack_require (http://localhost:8101/build/vendor.js:55:30) at Object.268 (http://localhost:8101/build/main.js:173:75) at webpack_require (http://localhost:8101/build/vendor.js:55:30) at Object.217 (http://localhost:8101/build/main.js:115:73) at webpack_require (http://localhost:8101/build/vendor.js:55:30) at Object.194 (http://localhost:8101/build/main.js:97:70) at webpack_require (http://localhost:8101/build/vendor.js:55:30)

Steps to Reproduce the Problem

  1. Start new Ionic project: ionic start test blank
  2. Install state machine: cd ./test && npm i angular2-state-machine
  3. Copy example state machine into home.ts
import { Component } from '@angular/core';
import { StateMachine, StateEvent } from 'angular2-state-machine/core';

@Component({
  selector: 'page-home',
  templateUrl: 'home.html'
})
export class HomePage {
  stateMachine: any;
  constructor() { }
  ngOnInit() {
    this.stateMachine = new StateMachine({
        initial: 'test',
        events: [
            new StateEvent({
                 name: 'warn', from: ['green', 'red'], to: 'yellow'
            })
        ]
        });
}}

Specifications

Version: 0.0.5 (tried 1.0.0 but had different issues) Ionic Framework: 3.9.2 Ionic App Scripts: 3.1.9 Angular Core: 5.2.10 Angular Compiler CLI: 5.2.10 Node: 9.11.1 OS Platform: Linux 4.13

leydar avatar May 09 '18 13:05 leydar

@leydar I am facing the same problem do you have any solution for this.

PalakjainJain avatar May 15 '18 07:05 PalakjainJain

@leydar @PalakjainJain Hi, guys! Sorry, but package itself is deprecated what is stated in description, because for now I have no time to support it anymore

vadym-k21 avatar Aug 12 '18 07:08 vadym-k21

Not to worry, @vadym-kukhtin thanks for the update.

leydar avatar Aug 12 '18 11:08 leydar