I try to learn React.JS, by typing "webpack" command, i found this error :
Hash: 04008667f996e5267ae1 Version: webpack 1.14.0 Time: 580ms
+ 2 hidden modules
ERROR in ./public/assets/react-source/catalog-app.js Module build
failed: TypeError: Cannot read property 'engine' of undefined
at load (/var/www/html/web/node_modules/transform/index.js:33:18)
at Object.transform (/var/www/html/web/node_modules/transform/index.js:19:3)
ERROR in ./public/assets/react-source/catalog-custom-item-app.js
Module build failed: TypeError: Cannot read property 'engine' of
undefined
at load (/var/www/html/web/node_modules/transform/index.js:33:18)
at Object.transform (/var/www/html/web/node_modules/transform/index.js:19:3)
Anyone can help pls ?
Already installed react-engine. My react app running well before.
Problem solved by typing this command :
npm install transform
then
npm install
Related
I have an react nextjs typescript project whenever i tried to run
npm run dev
it throws an error like this
error - TypeError: React__namespace.useSyncExternalStore is not a function
sometimes with other functions like useSyncExternalStore
yarn add react-dom#latest react#latest
I was getting a similar error when adding Chakra to an existing project and yarn add react-dom#latest react#latest resolved it for me mentioned in the first solution
Error for reference:
Uncaught TypeError: (0 , import_react236.useSyncExternalStore) is not a function
When I run npm run dev I get this error and I have no idea what is causing it
I have installed all the packages and reinstalled them.
I have applied all of the migrations.
I have re-cloned the repo and done all the steps again and I cant seem to get past this error.
Error: Upload was already defined and imported as a type, check the docs for extending types
at extendError (C:\Users\coope\dev\paypixl\backend\node_modules\nexus\src\builder.ts:1743:10)
at SchemaBuilder.addType (C:\Users\coope\dev\paypixl\backend\node_modules\nexus\src\builder.ts:602:15)
at C:\Users\coope\dev\paypixl\backend\node_modules\nexus\src\builder.ts:1696:14
at C:\Users\coope\dev\paypixl\backend\node_modules\nexus\src\utils.ts:147:41
at Array.forEach (<anonymous>)
at eachObj (C:\Users\coope\dev\paypixl\backend\node_modules\nexus\src\utils.ts:147:20)
at SchemaBuilder.traverseArgs (C:\Users\coope\dev\paypixl\backend\node_modules\nexus\src\builder.ts:1693:12)
at SchemaBuilder.maybeTraverseOutputFieldType (C:\Users\coope\dev\paypixl\backend\node_modules\nexus\src\builder.ts:1688:12)
at Object.addField (C:\Users\coope\dev\paypixl\backend\node_modules\nexus\src\builder.ts:1640:29)
at ObjectDefinitionBlock.field (C:\Users\coope\dev\paypixl\backend\node_modules\nexus\src\definitions\definitionBlocks.ts:712:22)
[ERROR] 10:03:59 Error: Upload was already defined and imported as a type, check the docs for
extending types
Got the following error when using radium with reactjs. Is anyone got the solution for this issue?
Radium Verion: v0.14.1
React Version: v0.13.3
ERROR in ./~/radium/lib/index.js
Module build failed: ReferenceError: Unknown plugin "flow-comments"
at PluginManager.subnormaliseString (/home/iswan/os-projects/praxis-samples/03-forms/node_modules/babel-core/lib/transformation/file/plugin-manager.js:147:13)
at PluginManager.add (/home/iswan/os-projects/praxis-samples/03-forms/node_modules/babel-core/lib/transformation/file/plugin-manager.js:190:40)
at File.buildTransformers (/home/iswan/os-projects/praxis-samples/03-forms/node_modules/babel-core/lib/transformation/file/index.js:237:21)
at new File (/home/iswan/os-projects/praxis-samples/03-forms/node_modules/babel-core/lib/transformation/file/index.js:139:10)
at Pipeline.transform (/home/iswan/os-projects/praxis-samples/03-forms/node_modules/babel-core/lib/transformation/pipeline.js:164:16)
at transpile (/home/iswan/os-projects/praxis-samples/03-forms/node_modules/babel-loader/index.js:12:22)
at Object.module.exports (/home/iswan/os-projects/praxis-samples/03-forms/node_modules/babel-loader/index.js:69:12)
# ./~/praxis/src/ui/Input.jsx 19:14-31
I've got the same error. Just try to install flow-comments.
npm install babel-plugin-flow-comments --save
I've installed the npm module and when lifting my application, it gives the following error. I was not able to find any suitable solution in the GitHub Issues or Wiki.
The module is here. I've already included in my config directory passport.js and auth.js files, as they have noted.
$ sails lift
info: Starting app...
/home/me/Documents/projects/margin/node_modules/sails-auth/api/hooks/sails-auth.js:4
sails.services.passport.loadStrategies();
^
TypeError: Cannot read property 'loadStrategies' of undefined
at Hook.initialize (/home/me/Documents/projects/margin/node_modules/sails-auth/api/hooks/sails-auth.js:4:30)
at Hook.bound [as initialize] (/usr/local/lib/node_modules/sails/node_modules/lodash/dist/lodash.js:729:21)
at /usr/local/lib/node_modules/sails/lib/hooks/index.js:75:14
at /usr/local/lib/node_modules/sails/node_modules/async/lib/async.js:454:17
at /usr/local/lib/node_modules/sails/node_modules/async/lib/async.js:444:17
at Array.forEach (native)
at _each (/usr/local/lib/node_modules/sails/node_modules/async/lib/async.js:46:24)
at Immediate.taskComplete (/usr/local/lib/node_modules/sails/node_modules/async/lib/async.js:443:13)
at processImmediate [as _immediateCallback] (timers.js:358:17)
I had the same problems in one of my sails app repositories. I fixed it by installing a previous version of sails-auth.
npm install sails-auth#1.2.3
This fixed it for me. I also updated dependency reference for my package.json from
"sails-auth": "^1.0.10",
to
"sails-auth": "1.2.3",
After this I was able to lift with no problems. I created an issue report here: https://github.com/balderdashy/sails/issues/3385
Hope this helps.
When running the tests on master code npm test works fine,
but when I build Fabric locally (with node build.js modules=ALL)
the test breaks with error:
{ [Error: Cannot read property 'navigator' of undefined] message:
'Cannot read property \'navigator\' of undefined' }
Even without any changes to the codebase. I guess I'm missing some build flag.
Try this: node build.js modules=ALL exclude=gestures,cufon,json minifier=uglifyjs.