Comments (6)
Your code seems to be requiring .ts
source files instead of .js
modules from within 'node_modules'. Not sure what's causing that, but my best guess is ts-node
.
from webpack-dependency-suite.
I understand why you may say that, based on the error I pasted. However, if that was the case, then the entire webpack-typescript skeleton couldn't work, right? But, it does work, and it uses the .js files in the /node_modules directory.
If I remove the Resolve plugin, then things work. So, it does seem specific to using the plugin with the typescript-webpack skeleton, which is what introduced ts-node. Have you tested with that? Again, my project is directly based on the latest webpack-typescript skeleton, with minimal changes.
Thanks,
Don
from webpack-dependency-suite.
Also, it is not "your code" (mine) that is requiring the .ts source files -
[at-loader] node_modules/webpack-dependency-suite/plugins/root-most-resolve-plugin.ts:1:1
- it is the [at-loader] that is doing this. This is aurelia-typescript-loader I think, right?
from webpack-dependency-suite.
No, at-loader
is the default name of the awesome-typescript-loader
. Seems it's trying to validate too much. Try adding exclude: ["node_modules"]
to your tsconfig.json
.
from webpack-dependency-suite.
Again, just to clarify -
I've not previously had any issue with typescript loading or ts-node. Only now, when I try to use this dependency plugin. So, what is making it seem that all of the node-modules needs to be excluded, when this has never previously been a problem?
Don
from webpack-dependency-suite.
Hi @don-bluelinegrid. Sorry for the late reply. Please check out the new aurelia webpack plugin, which does not require this set of plugins.
from webpack-dependency-suite.
Related Issues (9)
- Missing enhanced resolve HOT 2
- Globbing in comment-loader HOT 1
- Globbing implementation HOT 2
- Update to webpack 4
- Version 10 of node.js has been released
- An in-range update of @types/lodash is breaking the build 🚨 HOT 16
- Check also peerDependencies in RootMostResolvePlugin HOT 1
- Splitting into smaller packages HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webpack-dependency-suite.