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
Error: Please install tedious package manually #11168
Comments
I don't think this is a problem with sequelize. It is more likely to be a problem with pkg (or you did something wrong). Are you sure |
Yes, I'm sure. |
It is my dependencies: |
Can you try using pkg with the
If that doesn't work, can you try using nexe instead of pkg? |
pkg -b cause this error:
which the |
Hmm... I am starting to believe that this is being caused by the dynamic require call to Please take a look at the following: Let me know if from these you can solve your problem. |
Thanks a lot, I solved the problem with referencing the needed stuff in assets and scripts like follow: "bin": "index.js",
"pkg": {
"scripts": ["node_modules/tedious/lib/tedious.js", "models/*.js"],
"assets": ["config/log.json"]
} and then execute this pkg commad:
|
Nice 😬 Can you close the issue? |
OFCOURSEEEEEE |
Was getting this error when trying to use sequelize-auto.
|
I had this issue when building my node server app and bundling all the dependencies in a single file. Webpack was unable to guess that my app was depending on import * as tedious from 'tedious';
...
const db = new Sequelize({
dialect: 'mssql',
dialectModule: tedious,
...
}); By writing a static import Webpack embeds the Official documentation here ; Search for dialectModule option |
Hi @JonLopezGarcia, great that you figured it out. Maybe you can help me with #13169 as well? |
What are you doing?
using the pkg (npm pacckager) and create an exe package.
// A simple tedious application
To Reproduce
Steps to reproduce the behavior:
1- create a simple node application with tedious
2- npm install -g pkg
3- pkg -t win-x64 index.js -o apptedious
4- apptedious
What do you expect to happen?
Run without any error.
What is actually happening?
Error: Please install tedious package manually
Environment
Dialect:
Dialect **tedious ** version:6.2.0
Database version: mssql 2016
Sequelize version: 5.9.4
Node Version: 8.11.3
OS: Windows 10
If TypeScript related: TypeScript version: XXX
Tested with latest release:
The text was updated successfully, but these errors were encountered: