question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ReferenceError: initialState is not defined

See original GitHub issue

I am sorry for this, actually there is no error with your boilerplate. Let me explain. I have cloned your boilerplate to use for my Recipebook(the app i am building in educational purposes in order to get solid understanding of redux ecosystem). So i have changed boilerplate to fit my needs. After that i run npm run build successfully. And then i get error(screenshot below) on ‘npm start’. I have created Recipebook repo where i have uploaded my code. I know i asking for too much but i am eated my braines trying to figure this out. Can you please check my repo and help me figure out how to fix this error. Thanks in advance! recipebook error

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
isaadabbasicommented, Jan 1, 2019

Quick Solution: This may not be the perfect solution but what i found it to be is way the node/test envs are reading the modules. replace const/let with var and replicate the object in param assignment. solution1

0reactions
asif-codecommented, Oct 23, 2022

It Works

Read more comments on GitHub >

github_iconTop Results From Across the Web

initialState undefined (Example) | Treehouse Community
Hi all, My Git shell is compiling the project in it's current state with npm start but there's a console error in the...
Read more >
Uncaught ReferenceError: initialState is not defined
I'm getting this when trying to edit the home page only. It just shows a blank page with no elements in it. All...
Read more >
Uncaught ReferenceError: state is not defined - Stack Overflow
Why are you using connect? Do you have a redux store? state is probably undefined because by default state will be undefined if...
Read more >
useState is not defined ReferenceError in React [Solved]
The "Uncaught ReferenceError: useState is not defined" occurs when we use the useState hook in our code but forget to import it. To...
Read more >
initialstate' is not defined no-undef Code Example
Answers related to “initialstate' is not defined no-undef” ... react modal error app.js:68486 Uncaught ReferenceError: useState is not defined at new App ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found