Skip to content

Error: Cannot find module './index.ts' #2

@amazingrando

Description

@amazingrando

Issue

When I try to run npm run crawl https://fate-srd.com, I get the following error.

> ts-node index.ts https://fate-srd.com

node:internal/modules/cjs/loader:998
  throw err;
  ^

Error: Cannot find module './index.ts'
Require stack:
- /Users/oest/Documents/Sites/4k/spidergram/imaginaryUncacheableRequireResolveScript
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Function.resolve (node:internal/modules/cjs/helpers:109:19)
    at requireResolveNonCached (/Users/oest/Documents/Sites/4k/spidergram/node_modules/ts-node/dist/bin.js:549:16)
    at getProjectSearchDir (/Users/oest/Documents/Sites/4k/spidergram/node_modules/ts-node/dist/bin.js:519:40)
    at phase3 (/Users/oest/Documents/Sites/4k/spidergram/node_modules/ts-node/dist/bin.js:267:27)
    at bootstrap (/Users/oest/Documents/Sites/4k/spidergram/node_modules/ts-node/dist/bin.js:47:30)
    at main (/Users/oest/Documents/Sites/4k/spidergram/node_modules/ts-node/dist/bin.js:33:12)
    at Object.<anonymous> (/Users/oest/Documents/Sites/4k/spidergram/node_modules/ts-node/dist/bin.js:579:5)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1213:10) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/oest/Documents/Sites/4k/spidergram/imaginaryUncacheableRequireResolveScript'
  ]
}

Node.js v18.11.0

I'm running Node v18.11.0 and I installed arangodb 3.10.4 with homebrew. The project template is Simple crawler (Typescript).

Help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions