Skip to content
This repository has been archived by the owner on Dec 30, 2021. It is now read-only.

Migrating Reactboilerplate app into CSA failing #183

Open
dotamir opened this issue Jul 20, 2020 · 2 comments
Open

Migrating Reactboilerplate app into CSA failing #183

dotamir opened this issue Jul 20, 2020 · 2 comments

Comments

@dotamir
Copy link

dotamir commented Jul 20, 2020

Hi.
I'm trying to migrate our web application into snowpack using CSA React template but I got a weird error that I couldn't find any solution for it.
Currently, we're using Reactboilerplate in our web application.
But when I migrate codebase into snowpack project without any changes on snowpack configuration I got this error:

Snowpack

  Server starting…

  mount:web_modules.......[READY] mount $WEB_MODULES --to /web_modules
  mount:public............[READY] mount public --to /
  mount:src...............[READY] mount src --to /_dist_
  build:.ts,.tsx..........[READY] (default) esbuild
  build:js,jsx............[READY] (plugin) @snowpack/plugin-babel

▼ Console

  [log] ! updating dependencies...
  [warn] The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
  [warn] The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
  [warn] The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten

And then stuck in this section.

Does anyone have any idea what is this happening?

Thanks in advance.

@davelsan
Copy link

I don't know if it applies, but you may get a similar warning while using rollup and @rollup/plugin-commonjs. I think it is what you'd expect from a global this when parsing ES5+ in strict mode (see Securing JavaScript section).

@drwpow
Copy link
Contributor

drwpow commented Jul 27, 2020

Hey @dotamir. Thanks for raising the issue. Do you happen to have a reproduction of this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants