Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1025538 > unrolled thread
| Started by | Pirate Praveen <praveen@onenetbeyond.org> |
|---|---|
| First post | 2020-09-18 15:00 +0200 |
| Last post | 2020-09-24 13:50 +0200 |
| Articles | 6 — 2 participants |
Back to article view | Back to linux.debian.bugs.dist
Bug#970550: diaspora installation fails with ExecJS::ProgramError: TypeError: Cannot read property 'list' of undefined Pirate Praveen <praveen@onenetbeyond.org> - 2020-09-18 15:00 +0200
Bug#970550: this is a bug in ruby-autoprefixer-rails Pirate Praveen <praveen@onenetbeyond.org> - 2020-09-18 16:40 +0200
Bug#970550: this is a bug in libjs-autoprefixer Pirate Praveen <praveen@onenetbeyond.org> - 2020-09-20 11:10 +0200
Bug#970550: replacing browserify with webpack or rollup - need help Pirate Praveen <praveen@onenetbeyond.org> - 2020-09-20 11:50 +0200
Bug#970550: [Pkg-javascript-devel] Bug#970550: replacing browserify with webpack or rollup - need help Nilesh Patra <npatra974@gmail.com> - 2020-09-20 12:30 +0200
Bug#970550: [Pkg-javascript-devel] Bug#970550: Bug#970550: replacing browserify with webpack or rollup - need help Pirate Praveen <praveen@onenetbeyond.org> - 2020-09-24 13:50 +0200
| From | Pirate Praveen <praveen@onenetbeyond.org> |
|---|---|
| Date | 2020-09-18 15:00 +0200 |
| Subject | Bug#970550: diaspora installation fails with ExecJS::ProgramError: TypeError: Cannot read property 'list' of undefined |
| Message-ID | <AQo9z-69Z-1@gated-at.bofh.it> |
Package: diaspora Version: 0.7.14.0-2 Severity: grave Using packages from https://wiki.debian.org/Diaspora#Buster_Fasttrack.2Fpersonal_repo (as rails 5 in not available in unstable/experimental) installation fails with Bundle complete! 101 Gemfile dependencies, 223 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. Setting up secret_token... Checking if the database is empty... diaspora_production database is not empty, skipping database setup Running migrations... Precompiling assets... rake aborted! ExecJS::ProgramError: TypeError: Cannot read property 'list' of undefined /usr/share/diaspora/app/assets/config/manifest.js:9 (execjs):150:23 (execjs):76:3 (execjs):77:2 (execjs):8643:14 (execjs):1:40 Object.<anonymous> ((execjs):1:58) Module._compile (internal/modules/cjs/loader.js:778:30) Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) Module.load (internal/modules/cjs/loader.js:653:32) tryModuleLoad (internal/modules/cjs/loader.js:593:12) /usr/share/rubygems-integration/all/gems/autoprefixer-rails-8.6.5/lib/autoprefixer-rails/processor.rb:153:in `runtime' /usr/share/rubygems-integration/all/gems/autoprefixer-rails-8.6.5/lib/autoprefixer-rails/processor.rb:37:in `process' /usr/share/rubygems-integration/all/gems/autoprefixer-rails-8.6.5/lib/autoprefixer-rails/sprockets.rb:20:in `run' /usr/share/rubygems-integration/all/gems/autoprefixer-rails-8.6.5/lib/autoprefixer-rails/sprockets.rb:14:in `call' /usr/share/rubygems-integration/all/gems/rake-13.0.1/exe/rake:27:in `<top (required)>' Tasks: TOP => assets:precompile (See full trace by running task with --trace) dpkg: error processing package diaspora (--configure): installed diaspora package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: diaspora E: Sub-process /usr/bin/dpkg returned an error code (1)
[toc] | [next] | [standalone]
| From | Pirate Praveen <praveen@onenetbeyond.org> |
|---|---|
| Date | 2020-09-18 16:40 +0200 |
| Subject | Bug#970550: this is a bug in ruby-autoprefixer-rails |
| Message-ID | <AQpIl-7aP-3@gated-at.bofh.it> |
| In reply to | #1025538 |
Control: reassign -1 ruby-autoprefixer-rails Control: found -1 8.6.5+dfsg-3 After replacing sass-rails, execjs and autoprefixer-rails (taking clues from the error log) with versions from rubygems.org, I found autoprefixer-rails version installed from rubygems.org fixes this issue, so the bug is in ruby-autoprefixer-rails.
[toc] | [prev] | [next] | [standalone]
| From | Pirate Praveen <praveen@onenetbeyond.org> |
|---|---|
| Date | 2020-09-20 11:10 +0200 |
| Subject | Bug#970550: this is a bug in libjs-autoprefixer |
| Message-ID | <AR3w6-63d-9@gated-at.bofh.it> |
| In reply to | #1025547 |
reassign -1 libjs-autoprefixer found -1 8.6.5-2 On Fri, Sep 18, 2020 at 19:57, Pirate Praveen <praveen@onenetbeyond.org> wrote: > Control: reassign -1 ruby-autoprefixer-rails > Control: found -1 8.6.5+dfsg-3 > > After replacing sass-rails, execjs and autoprefixer-rails (taking > clues from the error log) with versions from rubygems.org, I found > autoprefixer-rails version installed from rubygems.org fixes this > issue, so the bug is in ruby-autoprefixer-rails. ruby-autoprefixer-rails links to autoprefixer.js provided by libjs-autoprefixer. ls -l /usr/share/rubygems-integration/all/gems/autoprefixer-rails-8.6.5/vendor/autoprefixer.js lrwxrwxrwx 1 root root 54 Mar 1 2019 /usr/share/rubygems-integration/all/gems/autoprefixer-rails-8.6.5/vendor/autoprefixer.js -> ../../../../../javascript/autoprefixer/autoprefixer.js
[toc] | [prev] | [next] | [standalone]
| From | Pirate Praveen <praveen@onenetbeyond.org> |
|---|---|
| Date | 2020-09-20 11:50 +0200 |
| Subject | Bug#970550: replacing browserify with webpack or rollup - need help |
| Message-ID | <AR48N-6ga-1@gated-at.bofh.it> |
| In reply to | #1025538 |
Control: tags -1 help
On Sun, Sep 20, 2020 at 14:44, Pirate Praveen
<praveen@onenetbeyond.org> wrote:
> The warning now changes to,
>
> (!) Missing shims for Node.js built-ins
> Creating a browser bundle that depends on 'path', 'url' and 'os'. You
> might need to include
> https://www.npmjs.com/package/rollup-plugin-node-builtins
> (!) Unresolved dependencies
> https://rollupjs.org/guide/en#warning-treating-module-as-external-dependency
> path (imported by ../../../usr/share/nodejs/browserslist/index.js,
> commonjs-external:path,
> ../../../usr/share/nodejs/postcss/lib/input.js,
> ../../../usr/share/nodejs/browserslist/node.js,
> ../../../usr/share/nodejs/postcss/lib/map-generator.js,
> ../../../usr/share/nodejs/postcss/lib/previous-map.js)
rollup-plugin-node-builtins is not packaged in debian. So I decided to
try webpack (code pushed to a separate branch 'webpack'),
This has resulted in a situation where we need to handle Buffer
correctyly.
with Buffer: true in webpack.config.js, the build fails with error
ERROR in /usr/share/nodejs/postcss/lib/map-generator.js
Module not found: Error: Can't resolve
'./../../../../../<<PKGBUILDDIR>>/buffer' in
'/usr/share/nodejs/postcss/lib'
@ /usr/share/nodejs/postcss/lib/map-generator.js 1:0-89
@ /usr/share/nodejs/postcss/lib/lazy-result.js
@ /usr/share/nodejs/postcss/lib/processor.js
@ /usr/share/nodejs/postcss/lib/postcss.js
@ ./lib/autoprefixer.js
with Buffer: "mock" or Buffer: false, the build passes, but now rake
assets:precompile in diaspora fails with the following error
root@diaspora-buster-main:/usr/share/diaspora# sudo -u diaspora -E -H
bundle exec rake assets:precompile
rake aborted!
ExecJS::RuntimeError: /tmp/execjs20200920-897-qyh1s1js:87
process.stdout.write('' + string);
^
TypeError: Cannot read property 'write' of undefined
at print (/tmp/execjs20200920-897-qyh1s1js:87:20)
at /tmp/execjs20200920-897-qyh1s1js:101:5
at /tmp/execjs20200920-897-qyh1s1js:1:40
at Object.<anonymous> (/tmp/execjs20200920-897-qyh1s1js:1:58)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js
(internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
/usr/share/diaspora/app/assets/config/manifest.js:9
(execjs):87
/usr/share/rubygems-integration/all/gems/autoprefixer-rails-8.6.5/lib/autoprefixer-rails/processor.rb:153:in
`runtime'
/usr/share/rubygems-integration/all/gems/autoprefixer-rails-8.6.5/lib/autoprefixer-rails/processor.rb:37:in
`process'
/usr/share/rubygems-integration/all/gems/autoprefixer-rails-8.6.5/lib/autoprefixer-rails/sprockets.rb:20:in
`run'
/usr/share/rubygems-integration/all/gems/autoprefixer-rails-8.6.5/lib/autoprefixer-rails/sprockets.rb:14:in
`call'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/exe/rake:27:in
`<top (required)>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
root@diaspora-buster-main:/usr/share/diaspora#
libraryTarget="window", libraryTrget="umd" was also tried without
success.
Packaging rollup-plugin-node-builtins may be one option. Any ideas?
[toc] | [prev] | [next] | [standalone]
| From | Nilesh Patra <npatra974@gmail.com> |
|---|---|
| Date | 2020-09-20 12:30 +0200 |
| Subject | Bug#970550: [Pkg-javascript-devel] Bug#970550: replacing browserify with webpack or rollup - need help |
| Message-ID | <AR4Lv-6I4-1@gated-at.bofh.it> |
| In reply to | #1025735 |
[Multipart message — attachments visible in raw view] — view raw
Hi, On Sun, 20 Sep 2020 at 15:18, Pirate Praveen <praveen@onenetbeyond.org> wrote: > Control: tags -1 help > > On Sun, Sep 20, 2020 at 14:44, Pirate Praveen > <praveen@onenetbeyond.org> wrote: > > The warning now changes to, > > > > (!) Missing shims for Node.js built-ins > > Creating a browser bundle that depends on 'path', 'url' and 'os'. You > > might need to include > > https://www.npmjs.com/package/rollup-plugin-node-builtins > > (!) Unresolved dependencies > > > https://rollupjs.org/guide/en#warning-treating-module-as-external-dependency > > path (imported by ../../../usr/share/nodejs/browserslist/index.js, > > commonjs-external:path, > > ../../../usr/share/nodejs/postcss/lib/input.js, > > ../../../usr/share/nodejs/browserslist/node.js, > > ../../../usr/share/nodejs/postcss/lib/map-generator.js, > > ../../../usr/share/nodejs/postcss/lib/previous-map.js) > > rollup-plugin-node-builtins is not packaged in debian. So I decided to > try webpack (code pushed to a separate branch 'webpack'), > > This has resulted in a situation where we need to handle Buffer > correctyly. > > with Buffer: true in webpack.config.js, the build fails with error > > ERROR in /usr/share/nodejs/postcss/lib/map-generator.js > Module not found: Error: Can't resolve > './../../../../../<<PKGBUILDDIR>>/buffer' in > '/usr/share/nodejs/postcss/lib' > @ /usr/share/nodejs/postcss/lib/map-generator.js 1:0-89 > @ /usr/share/nodejs/postcss/lib/lazy-result.js > @ /usr/share/nodejs/postcss/lib/processor.js > @ /usr/share/nodejs/postcss/lib/postcss.js > @ ./lib/autoprefixer.js > I've seen these almost same buffer based errors before - with webpack specifically - and manually creating a symlink helped. I did the same in this case and the build passes with "Buffer: true" I've pushed the commit to the same webpack branch Could you take a look and let me know if it made the situation better/worse? Thanks and Regards, Nilesh
[toc] | [prev] | [next] | [standalone]
| From | Pirate Praveen <praveen@onenetbeyond.org> |
|---|---|
| Date | 2020-09-24 13:50 +0200 |
| Subject | Bug#970550: [Pkg-javascript-devel] Bug#970550: Bug#970550: replacing browserify with webpack or rollup - need help |
| Message-ID | <ASxV7-2CE-1@gated-at.bofh.it> |
| In reply to | #1025538 |
On Sun, Sep 20, 2020 at 16:10, Pirate Praveen <praveen@onenetbeyond.org> wrote: > > > On Sun, Sep 20, 2020 at 15:51, Nilesh Patra <npatra974@gmail.com> > wrote: >> I've seen these almost same buffer based errors before - with >> webpack specifically - and manually creating a symlink helped. I >> did the same in this case and the build passes with "Buffer: true" >> I've pushed the commit to the same webpack branch >> Could you take a look and let me know if it made the situation >> better/worse? > > diaspora still fails at rake assets:precompile step with same error. > I suspected it has something to do with version of buffer we have. > libs-browser has buffer 4.3.0 in package.json but we have node-buffer > 5.x. But even with buffer 4.9.2 embedded, it fails the same way. After trying different options of both webpack and rollup, finally found this https://github.com/ai/autoprefixer-rails/blob/master/build/rollup.config.js I will try using this now.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.bugs.dist
csiph-web