Comments (4)
Thanks for reporting @Lavhe
I've just pinned ts-node to 8.0.2 for now, I'll investigate more and update here.
from node-rem.
Hello, still can't compile this project. Installed ts-node 8.0.2 but it doesn't work.
D:\Repos\_EXPRESS\node-rem\node_modules\ts-node\src\index.ts:228
return new TSError(diagnosticText, diagnosticCodes)
^
TSError: Ô¿» Unable to compile TypeScript:
src/api/routes/v1/index.ts(3,25): error TS2307: Cannot find module 'api/utils/Utils'.
at createTSError (D:\Repos\_EXPRESS\node-rem\node_modules\ts-node\src\index.ts:228:12)
from node-rem.
@AlexSegen Seems like the symlinks script isn't working.. just load the file api\utils\Util.ts
normally
this way for example:
export {};
import * as express from 'express';
import { apiJson } from "../../utils/Utils";
const supplierRoutes = require('./supplier.route');
const userRoutes = require('./user.route');
const authRoutes = require('./auth.route');
const uploadRoutes = require('./upload.route');
const router = express.Router();
/**
* GET v1/status
*/
router.get('/status', (req, res, next) => {
apiJson({ req, res, data: { status: 'OK' } });
return next();
});
from node-rem.
ts-node is upgraded now to 9.0.0
I also refactored import paths so symlinks are not needed anymore to simplify build processes, etc.
from node-rem.
Related Issues (13)
- add logout method HOT 2
- bug: ModelUtils method getPopulateArray HOT 1
- bug: query validation HOT 6
- "docker:start" HOT 1
- 1
- 1
- Not run with Node 15 HOT 1
- environment yml indentation HOT 1
- Error on dev HOT 5
- many path Error: Cannot find module '../xxx' HOT 3
- How to find user base on an accessToken using findOne? HOT 1
- Custom Validation Messages 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 node-rem.