Skip to content

Glob v7.2.1 breaks model path resolving [win32]  #1478

Closed
@skoniks

Description

@skoniks

Issue

Globe commit isaacs/node-glob@73feafd forces minimatch config options allowWindowsEscape to true, this breaks Sequelize option models, when it is set to path, like models: [__dirname + '/**/*.model.ts'] on windows system.

Versions

  • sequelize: 6.25.2
  • sequelize-typescript: 2.1.4
  • typescript: 4.8.3

Issue type

  • bug report
  • feature request

Actual behavior

When applicaton starts, models are not initializing. When trying to use model you receive an exception "Model not initialized: Member \"count\" cannot be called. \"User\" needs to be added to a Sequelize instance."

Steps to reproduce

  • Install [email protected]
  • Set sequelize option to path, like models: [__dirname + '/**/*.model.ts']
  • Run application on windows system

Solving the problem

Revert Pull request #1327 - Downgrade Glob to v7.2.0

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