Node v13.10.1
npm 6.13.7
PHP 7.3.15-3+ubuntu18.04.1
Java(TM) SE Runtime Environment (build 13.0.2+8)
composer 1.9.3

After npm install

npm run watch gives error on fresh install of D8+ Radix 4.7

ERROR Failed to compile with 1 errors
error in ./src/js/test.script.js

Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main resolved in /var/www/vhosts/xxx/web/themes/custom/test/node_modules/@babel/helper-compilation-targets/package.json

Comments

Rar9 created an issue. See original summary.

rar9’s picture

ANYONE that might be able to help regarding the NPM RUN Watch ERROR I get??

Is radix theme actually still compiling ok??????

if yes, where do I start to look for a fix on my fresh install?

rar9’s picture

Priority: Normal » Critical
Issue tags: +npm run watch : error watch
morbus iff’s picture

Priority: Critical » Normal
Issue tags: -npm run watch : error watch
morbus iff’s picture

What are the contents of your src/js/test.script.js?

rar9’s picture

Here the generated code from subtheme creation.

I just need to know if Radix Theme is aktually BROKEN or if it might be a Server fault.

import 'popper.js';
import 'bootstrap';

(function () {

  'use strict';

  Drupal.behaviors.helloWorld = {
    attach: function (context) {
      console.log('Hello World');
    }
  };

})(jQuery, Drupal);
morbus iff’s picture

Many people are using Radix subthemes, myself included, everyday.

rar9’s picture

Think is the output when I run npm install

Is this normal?

$ npm install > test2@ postinstall /var/www/vhosts/XXX/web/themes/custom/test2
> find node_modules/ -name '*.info' -type f -delete

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 1186 packages from 597 contributors and audited 20858 packages in 7.67s

27 packages are looking for funding
run `npm fund` for details

found 1 moderate severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details

rar9’s picture

ok i reinstalled NODEjs and NPM

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

Now my Node.js downgrade to 12.16.1 an NPM run watch works.

morbus iff’s picture

Status: Active » Closed (cannot reproduce)