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.

__DEV__ isn't working with the example Parcel server

See original GitHub issue

When I run the local server, I’m seeing this in the browser console…

Uncaught ReferenceError: __DEV__ is not defined

I have this in code which is in src/

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lookfirstcommented, Mar 17, 2020

@jaredpalmer You gave control of the project to this guy?

0reactions
agilgur5commented, Oct 13, 2020

Locking thread as off-topic and invalid comments as well as repeatedly abusive ones.


Screen Shot 2020-08-22 at 6 19 55 PM

I see the above comment from my email was deleted, repro-ing here:

It’s not supposed to be processed there since the example is meant to run the code that would be published.

Really?

Yes, ../ is a directory import, which checks for package.json whose main field points to dist. See also the issue I previously mentioned, https://github.com/formium/tsdx/issues/539

Read more comments on GitHub >

github_iconTop Results From Across the Web

Development - Parcel
Parcel automatically tracks all of the files, configuration, plugins, and dev dependencies that are involved in your build, and granularly invalidates the cache ......
Read more >
An Introduction to Parcel.js, the No-Config Web Application ...
This is your introduction to Parcel.js, the self-proclaimed super fast, no config web application bundler. Here's what you need to know.
Read more >
Building a basic website with Parcel - DEV Community ‍ ‍
Let's build a small website that can import libraries with Parcel. ... does not have access to the file system which means loading...
Read more >
parcel/reporter-dev-server v2.7.0 - npm.io
Check @parcel/reporter-dev-server 2.7.0 package - Last release 2.7.0 with MIT ... allowed to communicate with one another, state will not work as expected....
Read more >
How to set dev and prod targets in Parcel - Stack Overflow
This all started when I noticed that parcel watch does not minify/uglify the JS, and I don't want that to end up on...
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