[v4.1.0] webpack "failed to compile" when using sequelize
See original GitHub issueOS: macOS 10.12.2 Node: v7.6.0 Npm: 4.1.2
Steps:
reactql new
(created new project using defaults)npm install sequelize --save
(fine)- added
import Sequelize from 'sequelize';
to /src/app.js 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:
- Created 6 years ago
- Comments:8 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll close this for now; feel free to re-open if
webpack-node-externals
doesn’t solve itI had a similar issue. This resolved it. https://github.com/liady/webpack-node-externals