export class AppComponent {
constructor(private router: ActivatedRoute) {
const fObj = new Formula('2^x');
let result = fObj.evaluate({ x: 3 }); // result = 8
console.log(result);
}
}
run start
➜ playroutes git:(master) ✗ yarn start
yarn run v1.22.19
$ nx serve
> nx run playroutes:serve:development
Initial Chunk Files | Names | Raw Size
polyfills.js | polyfills | 82.71 kB |
main.js | main | 34.11 kB |
styles.css | styles | 95 bytes |
| Initial Total | 116.92 kB
Application bundle generation complete. [1.507 seconds]
Watch mode enabled. Watching for file changes...
> NX Failed to resolve entry for package "fparser". The package may have incorrect main/module/exports specified in its package.json.
Pass --verbose to see the stacktrace.
—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
> NX Running target serve for project playroutes failed
Failed tasks:
- playroutes:serve:development
Hint: run the command with --verbose for more details.
View structured, searchable error logs at https://nx.app/runs/KWq4lX62oE
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
run start