question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v4.1.0] webpack "failed to compile" when using sequelize

See original GitHub issue

OS: macOS 10.12.2 Node: v7.6.0 Npm: 4.1.2

Steps:

  1. reactql new (created new project using defaults)
  2. npm install sequelize --save (fine)
  3. added import Sequelize from 'sequelize'; to /src/app.js
  4. npm start

Getting this error:

Failed to compile.

(undefined) ./node_modules/sequelize/lib/dialects/mssql/query.js
Module not found: Error: Can't resolve 'tedious' in '/Users/{my username}/Documents/reactql/reactql-app/node_modules/sequelize/lib/dialects/mssql'
 @ ./node_modules/sequelize/lib/dialects/mssql/query.js 10:14-32
 @ ./node_modules/sequelize/lib/dialects/mssql/index.js
 @ ./node_modules/sequelize/lib/sequelize.js
 @ ./node_modules/sequelize/index.js
 @ ./src/app.js
 @ ./kit/entry/browser.js
 @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server react-hot-loader/patch webpack-dev-server/client?http://localhost:8080 webpack/hot/only-dev-server ./kit/entry/browser.js

I got the same result on a windows 10 machine. Since I’m not seeing any related issues in the sequelize repo, I’m assuming this has something to do with the webpack config, perhaps?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
leebensoncommented, Aug 11, 2017

I’ll close this for now; feel free to re-open if webpack-node-externals doesn’t solve it

1reaction
bentoothcommented, Aug 11, 2017

I had a similar issue. This resolved it. https://github.com/liady/webpack-node-externals

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module not found: Error: Can't resolve 'fs' in - Stack Overflow
I found a possible solution, that you have to put some configuration in one of the node_modules. But I think that is not...
Read more >
Node.js v19.3.0 Documentation
Iterates through the list of functions passed to tracker.calls() and will throw an error for functions that have not been called the expected...
Read more >
webpack/webpack - Gitter
Hi! I am facing some issue with webpack. I am working setting up a javascript development environment. I used extract-text-plugin in my webpack.config.prod....
Read more >
TypeScript - Sequelize
We're working hard on making Sequelize a breeze to use in TypeScript. ... Since TS cannot determine model association at compile time
Read more >
Build a Basic CRUD App with Vue.js and Node | Okta Developer
Failed at the sqlite3@4.0.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above....
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