loopbackio / loopbackio/loopback-next
the path problem in tutorial section of document which the caption is **Creating an Express Application with LoopBack REST API**
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.1k
- Forks
- 1.1k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 27
Description
### Describe the bug
I just follow the tutorial to creating an express application with loopback REST API in codebox.
after follow the tutorial to create an application use `lb4 app Note`,add Note model, add a datasource, there is no mistake.
However in the part Create a Facade Express Application(https://loopback.io/doc/en/lb4/express-with-lb4-rest-tutorial.html#create-a-facade-express-application)
the code block invoked error and the mistake message as follow:
### 1. the import path that invoked error
```js
import {ApplicationConfig, NoteApplication} from './application';
```
### mistake massage
```js
the application can't found the module
```
### 2. can't find http.ts
```
export class ExpressServer {
public server?: http.Server;
constructor() {}
}
```
### mistake message
**can not find namescape http.ts**
**and over the issue of import the file , the `server.ts` file can be import as `import {ApplicationConfig, NoteApplication} from './server';` there is no mistake. I don't know why.**
### Logs
_No response_
### Additional information
_No response_
### Reproduction
https://codesandbox.io/s/patient-microservice-x0vy44?file=/note/src/index.ts
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the “Create a Facade Express Application” section of the linked tutorial and reproduce the problem in the provided CodeSandbox. Compare the documented imports and http reference with the generated application files, including server.ts. Done when the tutorial example runs without the reported module or namespace errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- express, typescript
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100