Problem: sh: 1: babel: not found
Solution: Add var env in Heroku NPM_CONFIG_PRODUCTION = false
and rebuild app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Template Yii2 --> | |
<?php $this->registerJsFile(Yii::$app->homeUrl . 'js/selectTabs.js', ['depends' => [yii\web\JqueryAsset::class]]); ?> |
npm init --yes
npm i -D nodemon typescript ts-node nodemon @types/node
package.json
"dev": "nodemon --config nodemon.json src/index.ts"
nodemon.json