Error: Please install tedious package manually

See original GitHub issue

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:

  • mysql
  • postgres
  • sqlite
  • mssql
  • any 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:
  • No
  • Yes, specify that version: 5.9.4

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

8reactions
JonLopezGarciacommented, Nov 20, 2020

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 tedious therefore not bundling with the rest of my dependencies. I solved the issue by providing the tedious module in the sequelize configuration like so :

import * as tedious from 'tedious';
...
const db = new Sequelize({
  dialect: 'mssql',
  dialectModule: tedious,
  ...
});

By writing a static import Webpack embeds the tedious module in the bundle 🚀

Official documentation here ; Search for dialectModule option

1reaction
mostafa8026commented, Jul 12, 2019

OFCOURSEEEEEE

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Please install tedious package manually - Stack Overflow
To start solving this you have to ensure that you have installed sequelize and tedious and their names appear on your dependencies in...
Read more >
Installation | Tedious
Manually. Copy the directory containg tedious in to your project's node_modules directory. Installing SQL Server on Docker in Windows. Checkout the official ...
Read more >
tedious - npm
A TDS driver, for connecting to MS SQLServer databases.. Latest version: 15.1.2, last published: 2 months ago. Start using tedious in your ...
Read more >
Error with Tedious : r/node - Reddit
"Please install tedious package manually " Who already had this error ? There is a Tedious package in package.json, so it get installed...
Read more >
[Solved]-My sequelize-auto command execution throws error ...
[Solved]-My sequelize-auto command execution throws error "Please install tedious package manually"-node.js ... Finally I found the solution. I should install ...
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