question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dataMigrate: Typescript version of db.js is not found

See original GitHub issue

https://github.com/redwoodjs/redwood/blob/ffed13f62826b6b725c971bd0dcd6d346de6878d/packages/cli/src/commands/dataMigrate/up.js#L12

I 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:closed
  • Created 3 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
cannikincommented, Dec 10, 2021

haha probably

0reactions
jtoarcommented, Dec 10, 2021

@cannikin think this one can be closed?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found