Comments (2)
Hi @thachp , you have to fix your viewsDirectory
or to configure a baseUrl
in your tsconfig.json
.
- viewsDirectory: resolve(__dirname, '../src/views'),
+ viewsDirectory: resolve(__dirname, './views'),
Your TSX files will be transpiled by nest start
and stored in dist
. In your current configuration dist
is built in such a way that there is no src
directory there. For this reason no view can be found.
from express-tsx-views.
@pmb0 Yep that does it for me, it was a path issue. It will be helpful if you can include this piece of info in the ReadMe.
Your TSX files will be transpiled by nest start and stored in dist. In your current configuration dist is built in such a way that there is no src directory there. For this reason no view can be found.
from express-tsx-views.
Related Issues (12)
- Style HOT 3
- Action Required: Fix Renovate Configuration
- Nest.js Setup Throws Error For App Context HOT 1
- ES Module HOT 6
- Interactivity. HOT 2
- How to use it as second render engine.
- adding support for webpack, babel,scss,css, transpile modules HOT 1
- On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:' HOT 1
- Default layout / specify layout in render method. HOT 1
- TypeError: Cannot read property 'createElement' of undefined HOT 1
- Incorrect view engine extension HOT 5
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 express-tsx-views.