Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot access 'RiveStateMachine' before initialization #29

Closed
brice-noowu opened this issue Nov 25, 2022 · 0 comments
Closed

Cannot access 'RiveStateMachine' before initialization #29

brice-noowu opened this issue Nov 25, 2022 · 0 comments

Comments

@brice-noowu
Copy link

Hi, I just created a fresh Angular 14 project, and this is the error I see :

Error in /turbo_modules/ng-rive@0.1.3/fesm2015/ng-rive.mjs (910:134) Cannot access 'RiveStateMachine' before initialization

AppModule.ts

import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { RiveModule } from 'ng-rive';
import { CommonModule } from '@angular/common';

@NgModule({
  imports: [CommonModule, RiveModule],
  declarations: [AppComponent],
  bootstrap: [AppComponent],
})
export class AppModule {}

package.json

{
  "name": "angular",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "dependencies": {
    "@angular/animations": "^14.0.0",
    "@angular/common": "^14.0.0",
    "@angular/compiler": "^14.0.0",
    "@angular/core": "^14.0.0",
    "@angular/forms": "^14.0.0",
    "@angular/platform-browser": "^14.0.0",
    "@angular/platform-browser-dynamic": "^14.0.0",
    "@angular/router": "^14.0.0",
    "ng-rive": "^0.1.3",
    "rxjs": "~7.5.0",
    "tslib": "^2.3.0",
    "zone.js": "~0.11.4"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^14.0.0",
    "@angular/cli": "~14.0.0",
    "@angular/compiler-cli": "^14.0.0",
    "@types/jasmine": "~4.0.0",
    "jasmine-core": "~4.1.0",
    "karma": "~6.3.0",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage": "~2.2.0",
    "karma-jasmine": "~5.0.0",
    "karma-jasmine-html-reporter": "~1.7.0",
    "typescript": "~4.7.2"
  },
  "browser": {
    "fs": false,
    "path": false
  }
}
GrandSchtroumpf added a commit that referenced this issue Apr 4, 2023
…tialization

fix #29 cannot access RiveStateMachine before initialization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant