Open pdaehnert opened 3 years ago
Hi, im using symfony with encore web-bundle
installing it via npm failed
1) require('rainbow-code/src/rainbow-node) required the file mentioned in the package.json by compiling the assets (npm run dev) i got 0 verbose cli [ '/usr/bin/node', '/usr/local/bin/npm', 'run', 'dev' ] 1 info using npm@7.5.4 2 info using node@v10.19.0 3 timing config:load:defaults Completed in 1ms 4 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 2ms 5 timing config:load:builtin Completed in 2ms 6 timing config:load:cli Completed in 3ms 7 timing config:load:env Completed in 0ms 8 timing config:load:file:/var/www/html/symfony/.npmrc Completed in 0ms 9 timing config:load:project Completed in 1ms 10 timing config:load:file:/home/pdaehnert/.npmrc Completed in 0ms 11 timing config:load:user Completed in 0ms 12 timing config:load:file:/etc/npmrc Completed in 0ms 13 timing config:load:global Completed in 0ms 14 timing config:load:cafile Completed in 0ms 15 timing config:load:validate Completed in 0ms 16 timing config:load:setUserAgent Completed in 0ms 17 timing config:load:setEnvs Completed in 1ms 18 timing config:load Completed in 9ms 19 verbose npm-session 0f122c6ff30fceab 20 timing npm:load Completed in 17ms 21 timing command:run-script Completed in 8727ms 22 verbose stack Error: command failed 22 verbose stack at ChildProcess.proc.on (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27) 22 verbose stack at ChildProcess.emit (events.js:198:13) 22 verbose stack at maybeClose (internal/child_process.js:982:16) 22 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 23 verbose cwd /var/www/html/symfony 24 verbose Linux 5.8.0-44-generic 25 verbose argv "/usr/bin/node" "/usr/local/bin/npm" "run" "dev" 26 verbose node v10.19.0 27 verbose npm v7.5.4 28 error code 1
so then i tried to call all the required files manually
require('rainbow-code/src/rainbow'); require('rainbow-code/src/language/generic'); require('rainbow-code/src/language/php'); require('rainbow-code/themes/css/rainbow.css');
i could compile but in the browser i get the message:
Uncaught ReferenceError: Rainbow is not defined js generic.js:6 Webpack 22
any idea whats going on here?
Hi, im using symfony with encore web-bundle
installing it via npm failed
1) require('rainbow-code/src/rainbow-node) required the file mentioned in the package.json by compiling the assets (npm run dev) i got 0 verbose cli [ '/usr/bin/node', '/usr/local/bin/npm', 'run', 'dev' ] 1 info using npm@7.5.4 2 info using node@v10.19.0 3 timing config:load:defaults Completed in 1ms 4 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 2ms 5 timing config:load:builtin Completed in 2ms 6 timing config:load:cli Completed in 3ms 7 timing config:load:env Completed in 0ms 8 timing config:load:file:/var/www/html/symfony/.npmrc Completed in 0ms 9 timing config:load:project Completed in 1ms 10 timing config:load:file:/home/pdaehnert/.npmrc Completed in 0ms 11 timing config:load:user Completed in 0ms 12 timing config:load:file:/etc/npmrc Completed in 0ms 13 timing config:load:global Completed in 0ms 14 timing config:load:cafile Completed in 0ms 15 timing config:load:validate Completed in 0ms 16 timing config:load:setUserAgent Completed in 0ms 17 timing config:load:setEnvs Completed in 1ms 18 timing config:load Completed in 9ms 19 verbose npm-session 0f122c6ff30fceab 20 timing npm:load Completed in 17ms 21 timing command:run-script Completed in 8727ms 22 verbose stack Error: command failed 22 verbose stack at ChildProcess.proc.on (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27) 22 verbose stack at ChildProcess.emit (events.js:198:13) 22 verbose stack at maybeClose (internal/child_process.js:982:16) 22 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 23 verbose cwd /var/www/html/symfony 24 verbose Linux 5.8.0-44-generic 25 verbose argv "/usr/bin/node" "/usr/local/bin/npm" "run" "dev" 26 verbose node v10.19.0 27 verbose npm v7.5.4 28 error code 1
so then i tried to call all the required files manually
require('rainbow-code/src/rainbow'); require('rainbow-code/src/language/generic'); require('rainbow-code/src/language/php'); require('rainbow-code/themes/css/rainbow.css');
i could compile but in the browser i get the message:
Uncaught ReferenceError: Rainbow is not defined js generic.js:6 Webpack 22
any idea whats going on here?