Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to DevExpress to DLL? #124

Open
dove457 opened this issue Nov 8, 2018 · 3 comments
Open

How to DevExpress to DLL? #124

dove457 opened this issue Nov 8, 2018 · 3 comments

Comments

@dove457
Copy link

dove457 commented Nov 8, 2018

Hello,

I am trying to speed up development with Vue and Devexpress.

vue.config.js

module.exports = {
    configureWebpack: {
        plugins: [
            new AutoDllPlugin({
                context: __dirname,
                debug: true,
                inject: true,
                filename: '[name]_[hash].js',
                path: './dll',
                entry: {
                    vendor: ['vuex', 'vue', 'vue-router', 'devextreme'],
                },
            }),
        ]
    }
};

The error I get:

 vue-cli-service serve

 INFO  Starting development server...
AutoDllPlugin: is valid cache? false
AutoDllPlugin: cleanup
AutoDllPlugin: compile
[ ModuleNotFoundError: Module not found: Error: Can't resolve 'devextreme' in 'C:\Users\Dovydas\source\repos\Solution1\Program1\Client'
    at factory.create (C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\webpack\lib\Compilation.js:821:10)
    at factory (C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\webpack\lib\NormalModuleFactory.js:397:22)
    at resolver (C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\webpack\lib\NormalModuleFactory.js:130:21)
    at asyncLib.parallel (C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\webpack\lib\NormalModuleFactory.js:224:22)
    at C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\neo-async\async.js:2825:7
    at C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\neo-async\async.js:6886:13
    at normalResolver.resolve (C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\webpack\lib\NormalModuleFactory.js:214:25)
    at doResolve (C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\enhanced-resolve\lib\Resolver.js:184:12)
    at hook.callAsync (C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\enhanced-resolve\lib\Resolver.js:238:5)
    at _fn0 (eval at create (C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:15:1)
    at resolver.doResolve (C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\enhanced-resolve\lib\UnsafeCachePlugin.js:37:5)
    at hook.callAsync (C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\enhanced-resolve\lib\Resolver.js:238:5)
    at _fn0 (eval at create (C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:15:1)
    at hook.callAsync (C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\enhanced-resolve\lib\Resolver.js:238:5)
    at _fn0 (eval at create (C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:12:1)
    at resolver.doResolve (C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\enhanced-resolve\lib\DescriptionFilePlugin.js:42:38)
resolve 'devextreme' in 'C:\Users\Dovydas\source\repos\Solution1\Program1\Client'
  Parsed request is a module
  using description file: C:\Users\Dovydas\source\repos\Solution1\Program1\Client\package.json (relative path: .)
    Field 'browser' doesn't contain a valid alias configuration
    resolve as module
      C:\Users\Dovydas\source\repos\Solution1\Program1\node_modules doesn't exist or is not a directory
      C:\Users\Dovydas\source\repos\Solution1\node_modules doesn't exist or is not a directory
      C:\Users\Dovydas\source\repos\node_modules doesn't exist or is not a directory
      C:\Users\Dovydas\source\node_modules doesn't exist or is not a directory
      C:\Users\Dovydas\node_modules doesn't exist or is not a directory
      C:\Users\node_modules doesn't exist or is not a directory
      C:\node_modules doesn't exist or is not a directory
      looking for modules in C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules
        using description file: C:\Users\Dovydas\source\repos\Solution1\Program1\Client\package.json (relative path: ./node_modules)
          Field 'browser' doesn't contain a valid alias configuration
          using description file: C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\devextreme\package.json (relative path: .)
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\devextreme is not a file
            .wasm
              Field 'browser' doesn't contain a valid alias configuration
              C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\devextreme.wasm doesn't exist
            .mjs
              Field 'browser' doesn't contain a valid alias configuration
              C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\devextreme.mjs doesn't exist
            .js
              Field 'browser' doesn't contain a valid alias configuration
              C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\devextreme.js doesn't exist
            .json
              Field 'browser' doesn't contain a valid alias configuration
              C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\devextreme.json doesn't exist
            as directory
              existing directory
                using path: C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\devextreme\index
                  using description file: C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\devextreme\package.json (relative path: ./index)
                    no extension
                      Field 'browser' doesn't contain a valid alias configuration
                      C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\devextreme\index doesn't exist
                    .wasm
                      Field 'browser' doesn't contain a valid alias configuration
                      C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\devextreme\index.wasm doesn't exist
                    .mjs
                      Field 'browser' doesn't contain a valid alias configuration
                      C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\devextreme\index.mjs doesn't exist
                    .js
                      Field 'browser' doesn't contain a valid alias configuration
                      C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\devextreme\index.js doesn't exist
                    .json
                      Field 'browser' doesn't contain a valid alias configuration
                      C:\Users\Dovydas\source\repos\Solution1\Program1\Client\node_modules\devextreme\index.json doesn't exist ]

Do you have any ideas how to solve this issue?

Regards,
Dovydas

@dove457 dove457 changed the title How to DeVexpress to DLL? How to DevExpress to DLL? Nov 8, 2018
@trivialmonster
Copy link

Hi, Did you solve it?

@sujit510
Copy link

Hey, any updates?

@rfink
Copy link

rfink commented Jul 28, 2020

Same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants