Code Monkey home page Code Monkey logo

Comments (6)

niieani avatar niieani commented on June 3, 2024

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.

don-bluelinegrid avatar don-bluelinegrid commented on June 3, 2024

@niieani

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.

don-bluelinegrid avatar don-bluelinegrid commented on June 3, 2024

@niieani

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.

niieani avatar niieani commented on June 3, 2024

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.

don-bluelinegrid avatar don-bluelinegrid commented on June 3, 2024

@niieani

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.

niieani avatar niieani commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.