Comments (7)
Hi @bobwatcherx, I am missing something, can you tell me what main.ts are you running?
from danet.
app.ts file
import { Module } from 'https://deno.land/x/danet/mod.ts';
import { CatsController } from './main.ts';
@Module({
controllers: [CatsController],
})
export class AppModule {}
main.ts
import { Controller, Get } from 'https://deno.land/x/danet/mod.ts';
@Controller('cats')
export class CatsController {
@Get()
findAll(): string {
return 'This action returns all cats';
}
}
and run command : deno run -A app.ts
i get error like this
d:\1. BELAJAR HTML\denoPRO\MAINAN>deno run -A app.ts error: Uncaught SyntaxError: The requested module './Reflect.ts' does not provide an export named 'Reflect' export { Reflect } from "./Reflect.ts";
OS : Windows 10 ^
from danet.
Thanks, @bobwatcherx, I'm investigating this right now.
from danet.
@bobwatcherx You are trying to run a module, that will not work. It would be best/easier if you cloned our starter repository https://github.com/Savory/Danet-Starter
You should rename app.ts
to app.module.ts
and add a file app.ts
with the following content :
import { AppModule } from './app.module.ts';
import { DanetApplication } from 'https://deno.land/x/danet/mod.ts';
const bootstrap = async () => {
const application = new DanetApplication();
await application.init(AppModule);
return application;
}
await bootstrap();
Then try to run it !
from danet.
Our documentation lacks the necessary code example. I am improving this now. Tracking with issue #35
from danet.
We now provide the necessary code sample in the documentation.
However, the Reflect issue is caused Deno.
Closing this issue.
from danet.
@bobwatcherx I published a new version with another package to handle metadata.
You can now use v0.6.4 without any issues.
from danet.
Related Issues (20)
- Implement recommended community standards to the project HOT 2
- Doc: Some code example in REAME HOT 1
- Danet script for common task HOT 1
- openapi/swagger docs HOT 1
- auth modules as referance HOT 5
- Access controller/method in context
- SetMetadata function to create decorators HOT 5
- Support for simple mongodb paths HOT 1
- Logo suggestion HOT 1
- bundle command deprecated HOT 4
- Make nestjs-zod compatible with Danet.
- [REQUEST] Fresh Integration: Allow custom directory for the fresh.gen file
- [REQUEST] Fresh Integration: Allow jsonc type to Deno config file HOT 1
- [REQUEST] Fresh Integration: Add fresh `imports` information in the integration docs
- Fresh Layouts are not working with Danet
- Reconsider if you really want to mimic NestJS HOT 3
- add swagger UI support
- OS error during Deno installation on Linux HOT 2
- Suggestion: Events for Danet HOT 8
- Suggestion: Task Scheduling HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from danet.