question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

creating a new project and running it results into an error

See original GitHub issue

Following the tutorial and creating a new app you will see an error once you want to start the app.

I am using Version 1.7.1 but it still happens on 1.8.1.

foal createapp test

cd test

npm run develop

Will result into following error:

 /Users/patrickjung/Documents/backendProjects/test/src/index.ts:141
 export {EntityManager} from "./entity-manager/EntityManager";
         ^
 TypeError: Cannot set property EntityManager of #<Object> which has only a getter
     at Object.<anonymous> (/Users/patrickjung/Documents/backendProjects/test/src/index.ts:141:9)
     at Module._compile (internal/modules/cjs/loader.js:776:30)
     at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
     at Module.load (internal/modules/cjs/loader.js:653:32)
     at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
     at Function.Module._load (internal/modules/cjs/loader.js:585:3)
     at Module.require (internal/modules/cjs/loader.js:690:17)
     at require (internal/modules/cjs/helpers.js:25:18)
     at Object.<anonymous> (/Users/patrickjung/Documents/backendProjects/test/src/index.ts:8:1)
     at Module._compile (internal/modules/cjs/loader.js:776:30)
 Program node ./build/index.js exited with code 1

I do not seem to find EntityManager in the generated files.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Till92921commented, May 13, 2020

First of all nice Framework!

Unfortunately i got the same Error today.

1reaction
PatrickJung94commented, May 13, 2020

@LoicPoullain Thanks this fixed the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Q# Create new project...' resulted in an error - Stack Overflow
I'm running macOS 11.2. I get the following error when trying to create the project (VS Code Version: 1.52.1) Command 'Q#: Create new...
Read more >
Project build errors and warnings (PRJxxxx) - Microsoft Learn
This section is a reference to the errors generated by the Project build tools. Project build errors and warnings have the form PRJxxxx, ......
Read more >
Creating new project results in Invalid project description error
Symptom. "Invalid project description" error occurs during attempts to create a new project in a certain location.
Read more >
Command 'SFDX: Create Project' resulted in an error ... - GitHub
I ran sfdx update from CMD and it says I'm up to date. I am able to create project directly via CMD but...
Read more >
Build and run your app - Android Developers
Sync tab: Displays tasks that Gradle executes to sync with your project files. Similar to the Build Output tab, if you encounter a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found