This is a template you can use to report issues. You can also drag images, videos and include Preformatted text
Expected behavior
We are upgraded to typescript recently with instructions:
https://docs.forestadmin.com/woodshop/how-tos/translate-your-app-into-typescript
dist folder is created properly, all files are compiled but we have:
- SyntaxError in terminal and
- Broken application.
Actual behavior
Failure Logs
account-features.js.map
Model creation error: SyntaxError: Unexpected token ':'
accounts.js.map
Model creation error: SyntaxError: Unexpected token ':'
agents.js.map
Model creation error: SyntaxError: Unexpected token ':'
features.js.map
Model creation error: SyntaxError: Unexpected token ':'
index.js.map
Model creation error: SyntaxError: Unexpected token ':'
interfaces
Model creation error: Error: Cannot find module '/Users/bojanantonijevic/Desktop/web-app/forest-admin/dist/models/interfaces'
Require stack:
- /Users/bojanantonijevic/Desktop/web-app/forest-admin/node_modules/sequelize/lib/sequelize.js
- /Users/bojanantonijevic/Desktop/web-app/forest-admin/node_modules/sequelize/index.js
- /Users/bojanantonijevic/Desktop/web-app/forest-admin/dist/models/index.js
- /Users/bojanantonijevic/Desktop/web-app/forest-admin/dist/middlewares/forestadmin.js
- /Users/bojanantonijevic/Desktop/web-app/forest-admin/node_modules/require-all/index.js
- /Users/bojanantonijevic/Desktop/web-app/forest-admin/dist/app.js
subscribers.js.map
Model creation error: SyntaxError: Unexpected token ':'
Example app listening on port 3000!
Your admin panel is available here: https://app.forestadmin.com/projects
Logs are triggered from models/index.js:
try {
var model = sequelize['import'](path.join(__dirname, file));
db[model.name] = model;
} catch (error) {
console.log(file);
console.error('Model creation error: ' + error);
}
Context
Please provide any relevant information about your setup.
- Package Version:
- Express Version:
- Sequelize Version:
- Database Dialect:
- Database Version:
- Project Name: