Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'Schema' of undefined #11

Open
Aditya94A opened this issue Nov 17, 2020 · 0 comments
Open

Cannot read property 'Schema' of undefined #11

Aditya94A opened this issue Nov 17, 2020 · 0 comments

Comments

@Aditya94A
Copy link

Aditya94A commented Nov 17, 2020

Any ideas?

Something about the mongoose types dependencies is conflicting with something else..


C:\Projects\Crawling-Infrastructure\master\src\models\crawltask.model.js:24
var CrawlTaskSchema = new mongoose_1["default"].Schema({
                                                ^
TypeError: Cannot read property 'Schema' of undefined
    at Object.<anonymous> (C:\Projects\Crawling-Infrastructure\master\src\models\crawltask.model.js:24
:49)
    at Module._compile (internal/modules/cjs/loader.js:1147:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10)
    at Module.load (internal/modules/cjs/loader.js:996:32)
    at Function.Module._load (internal/modules/cjs/loader.js:896:14)
    at Module.require (internal/modules/cjs/loader.js:1036:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\Projects\Crawling-Infrastructure\master\src\services\crawltask.service.t
s:3:1)
    at Module._compile (internal/modules/cjs/loader.js:1147:30)
    at Module.m._compile (C:\Projects\Crawling-Infrastructure\master\node_modules\ts-node\src\index.ts
:858:23)
    at Module._extensions..js (internal/modules/cjs/loader.js:1167:10)
    at Object.require.extensions.<computed> [as .ts] (C:\Projects\Crawling-Infrastructure\master\node_
modules\ts-node\src\index.ts:861:12)
    at Module.load (internal/modules/cjs/loader.js:996:32)
                                                                                            
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant