NPM Resource Changed ? Pending

User tests: Successful: Unsuccessful:

avatar dgrammatiko
dgrammatiko
23 Oct 2020

Pull Request for Issue #31158 (comment) .

Summary of Changes

Nodelist is not an array, always convert it to array. Fix the subform custom Element.

Testing Instructions

Go to plugin tinyMCE's edit page.

  • No console error
  • the External Plugin URLs is working as expected (add new, remove, drag and drop)

Actual result BEFORE applying this Pull Request

console error, subform broken

Expected result AFTER applying this Pull Request

subform is working as expected

Documentation Changes Required

Nope, bug fix

avatar dgrammatiko dgrammatiko - open - 23 Oct 2020
avatar dgrammatiko dgrammatiko - change - 23 Oct 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 23 Oct 2020
Category JavaScript Repository NPM Change
avatar dgrammatiko dgrammatiko - change - 23 Oct 2020
Labels Added: NPM Resource Changed ?
avatar joomla-cms-bot joomla-cms-bot - change - 23 Oct 2020
Category JavaScript Repository NPM Change JavaScript Repository NPM Change Front End Plugins
avatar dgrammatiko dgrammatiko - change - 23 Oct 2020
The description was changed
avatar dgrammatiko dgrammatiko - edited - 23 Oct 2020
avatar dgrammatiko dgrammatiko - change - 23 Oct 2020
Title
[4.0] Fix js console error
[4.0] [NO CACHE] Fix js console error
avatar dgrammatiko dgrammatiko - edited - 23 Oct 2020
avatar dgrammatiko
dgrammatiko - comment - 23 Oct 2020

@HLeithner it seems the Drone OS was updated (?) and it is missing Python 2 and thus it cannot compile nodesass:

npm ERR! gyp verb check python checking for Python executable "python2" in the PATH

25 | npm ERR! gyp verb which failed Error: not found: python2

avatar brianteeman
brianteeman - comment - 23 Oct 2020

Tagging @Hackwar

avatar HLeithner
HLeithner - comment - 23 Oct 2020

Beside that this should be fixed is there a way to use a sasscompiler that doesn't need python2?

avatar dgrammatiko
dgrammatiko - comment - 23 Oct 2020

Yes, webassembly. But a bit slower then again way more portable

avatar HLeithner
HLeithner - comment - 23 Oct 2020

how does webassembly help compling scss to css? I mean webassembly is a "browser" vm and can't compile scss or did I missed something?

avatar HLeithner
HLeithner - comment - 23 Oct 2020

Anyway we are using current node version with alpine linux which is both bleeding edge... so we have to move to something more settled.

btw. can you please split npm update from this pr, thanks

avatar joomla-cms-bot joomla-cms-bot - change - 23 Oct 2020
Category JavaScript Repository NPM Change Front End Plugins JavaScript Repository NPM Change
avatar dgrammatiko
dgrammatiko - comment - 23 Oct 2020

@HLeithner node updates reverted

avatar dgrammatiko
dgrammatiko - comment - 23 Oct 2020

I mean webassembly is a "browser" vm and can't compile scss or did I missed something?

Javascript is javascript, cli or browser is minor. Anyways we are already using webassebly for zopfli:

const { gzip } = require('@gfx/zopfli');

https://www.npmjs.com/package/@gfx/zopfli
for the same reason: #23385 (comment)

avatar HLeithner
HLeithner - comment - 23 Oct 2020

I have no problem with webassembly but we need a software to use webassembly to compile sass to css (replacing node-sass) or?

avatar dgrammatiko
dgrammatiko - comment - 23 Oct 2020

I have no problem with webassembly but we need a software to use webassembly to compile sass to css (replacing node-sass) or?

Actually scrap the idea, I had the impression that node-sass was already providing a wasm version but it seems that this is not the case yet: sass/node-sass#2011

avatar dgrammatiko dgrammatiko - change - 23 Oct 2020
The description was changed
avatar dgrammatiko dgrammatiko - edited - 23 Oct 2020
avatar Quy Quy - test_item - 23 Oct 2020 - Tested successfully
avatar Quy
Quy - comment - 23 Oct 2020

I have tested this item successfully on 2e8955d


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31213.

avatar wilsonge wilsonge - change - 23 Oct 2020
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-10-23 19:44:52
Closed_By wilsonge
avatar wilsonge wilsonge - close - 23 Oct 2020
avatar wilsonge wilsonge - merge - 23 Oct 2020
avatar wilsonge
wilsonge - comment - 23 Oct 2020

Merging on the test + review. Thanks!

Add a Comment

Login with GitHub to post a comment