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

Not working with [email protected] #110

Open
2 of 6 tasks
vjpr opened this issue Jun 18, 2020 · 5 comments
Open
2 of 6 tasks

Not working with [email protected] #110

vjpr opened this issue Jun 18, 2020 · 5 comments

Comments

@vjpr
Copy link

vjpr commented Jun 18, 2020

Type:

  • bug
  • feature
  • enhancement
  • question

Environment:

  • OS: macOS
  • Browser: Chrome
  • Library Version: 1.1.4

I'm going to open a PR:

  • yes
  • no

Description:

/Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected]/node_modules/webpack-sources/lib/ConcatSource.js:72
				map.add(item.listMap(options));
                 ^
TypeError: item.listMap is not a function
    at ConcatSource.listMap (/Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected]/node_modules/webpack-sources/lib/ConcatSource.js:72:18)
    at ConcatSource.proto.sourceAndMap (/Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected]/node_modules/webpack-sources/lib/SourceAndMapMixin.js:24:16)
    at getTaskForFile (/Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected][email protected]/node_modules/webpack/lib/SourceMapDevToolPlugin.js:67:30)
    at /Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected][email protected]/node_modules/webpack/lib/SourceMapDevToolPlugin.js:240:22
    at /Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected][email protected]/node_modules/webpack/lib/Cache.js:91:34
    at Array.<anonymous> (/Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected][email protected]/node_modules/webpack/lib/cache/MemoryCachePlugin.js:45:13)
    at /Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected][email protected]/node_modules/webpack/lib/Cache.js:91:19
    at Hook.eval [as callAsync] (eval at create (/Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected]/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:19:1)
    at Cache.get (/Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected][email protected]/node_modules/webpack/lib/Cache.js:75:18)
    at /Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected][email protected]/node_modules/webpack/lib/SourceMapDevToolPlugin.js:198:26
    at arrayEach (/Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected]/node_modules/neo-async/async.js:2405:9)
    at Object.each (/Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected]/node_modules/neo-async/async.js:2846:9)
    at /Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected][email protected]/node_modules/webpack/lib/SourceMapDevToolPlugin.js:191:15
    at Hook.eval [as callAsync] (eval at create (/Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected]/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:16:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected]/node_modules/tapable/lib/Hook.js:18:14)
    at cont (/Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected][email protected]/node_modules/webpack/lib/Compilation.js:1913:32)
    at /Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected][email protected]/node_modules/webpack/lib/Compilation.js:1956:8
    at /Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected]/node_modules/neo-async/async.js:2830:7
    at Object.each (/Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected]/node_modules/neo-async/async.js:2850:39)
    at Compilation.createChunkAssets (/Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected][email protected]/node_modules/webpack/lib/Compilation.js:2693:12)
    at /Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected][email protected]/node_modules/webpack/lib/Compilation.js:1951:12
    at Hook.eval [as callAsync] (eval at create (/Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected]/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected]/node_modules/tapable/lib/Hook.js:18:14)
    at /Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected][email protected]/node_modules/webpack/lib/Compilation.js:1838:36
    at Hook.eval [as callAsync] (eval at create (/Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected]/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected]/node_modules/tapable/lib/Hook.js:18:14)
    at Compilation.seal (/Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected][email protected]/node_modules/webpack/lib/Compilation.js:1829:27)
    at /Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected][email protected]/node_modules/webpack/lib/Compiler.js:930:20
    at /Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected][email protected]/node_modules/webpack/lib/Compilation.js:1706:4
    at _next2 (eval at create (/Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected]/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:16:1)
    at eval (eval at create (/Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected]/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:42:1)
    at /Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected][email protected]/node_modules/webpack/lib/FlagDependencyExportsPlugin.js:289:11
    at /Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected]/node_modules/neo-async/async.js:2830:7
    at Object.each (/Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected]/node_modules/neo-async/async.js:2850:39)
    at /Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected][email protected]/node_modules/webpack/lib/FlagDependencyExportsPlugin.js:268:18
    at /Users/Vaughan/dev-mono/thirtyfive/node_modules/.pnpm/[email protected]/node_modules/neo-async/async.js:2830:7
@vjpr
Copy link
Author

vjpr commented Jun 18, 2020

The issue seems to arise when using {devtool: 'inline-cheap-source-map'}. When turning it off it works fine.

Closing - could not reproduce in bare config.

@vjpr vjpr closed this as completed Jun 18, 2020
@vjpr
Copy link
Author

vjpr commented Jun 18, 2020

Was able to reproduce. When using webpack-extension-reloader and {devtool: 'inline-cheap-source-map'}, this error always shows.

@vjpr vjpr reopened this Jun 18, 2020
@vjpr
Copy link
Author

vjpr commented Jun 18, 2020

The fix seems to be to simply upgrade to [email protected]. Maybe we could have a separate branch for this.

@meatherly
Copy link

meatherly commented Oct 29, 2020

@vjpr I was having errors relating to

[webpack-cli] Error: 
   at Object.extractEntries

It broke when I removed the filename option from the output.

  output: {
    path: path.join(__dirname, '/dist'),
    - filename: '[name].js',
  },

The webpack5 migration guide said you can remove that in the clean-up section https://webpack.js.org/migrate/5/#clean-up-configuration
🤷‍♂️

I added it back and everything is working now.

@Joozty
Copy link

Joozty commented Feb 3, 2021

any update on this? 🙂

vlechemin added a commit to grasp-gg/webpack-extension-reloader that referenced this issue Nov 2, 2022
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

3 participants