dataMigrate: Typescript version of db.js is not found
See original GitHub issueI tried a deploy right after the v0.15.0 upgrade and the dataMigrate command did not work because it couldn’t find the db module:
10:40:43 AM: $ /opt/build/repo/node_modules/.bin/rw dataMigrate up 10:40:45 AM: /opt/build/repo/node_modules/yargs/build/lib/yargs.js:1132 10:40:45 AM: throw err; 10:40:45 AM: ^ 10:40:45 AM: Error: Cannot find module '/opt/build/repo/api/src/lib/db' 10:40:45 AM: Require stack: 10:40:45 AM: - /opt/build/repo/node_modules/@redwoodjs/cli/dist/commands/dataMigrate/up.js
The import of a db.ts doesn’t work.
I’m opening the issue in case I can’t provide a fix myself :-.
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (10 by maintainers)
Top Results From Across the Web
How to set up TypeScript
If you are using Node.js, you want the npm version. If you are using MSBuild in your project, you want the NuGet package...
Read more >Command Line Interface | RedwoodJS Docs
Compares the list of files in api/db/dataMigrations to the records in the DataMigration table in the database and executes any files not present....
Read more >DataMigration · RxDB - JavaScript Database
With RxDB you can provide migrationStrategies for your collections that automatically (or on call) transform your existing data from older to ...
Read more >MigrationStatusDetails interface | Microsoft Learn
Whether full backup has been applied to the target database or not. NOTE: This property will not be serialized. It can only be...
Read more >DataTransfer.setData() - Web APIs | MDN
If data for the given type does not exist, it is added at the end of the drag data store, such that the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

haha probably
@cannikin think this one can be closed?