Skip to content

Upgrade to Quasar 2#29

Open
Beetix wants to merge 7 commits intocycleplanet:mainfrom
Beetix:feature/quasar_upgrade
Open

Upgrade to Quasar 2#29
Beetix wants to merge 7 commits intocycleplanet:mainfrom
Beetix:feature/quasar_upgrade

Conversation

@Beetix
Copy link
Contributor

@Beetix Beetix commented Aug 26, 2021

@reinierl
Copy link
Collaborator

Do you have this running on your machine?

When I do npm run dev I run into this first:


 App · ⚠️  Quasar requires a minor change to the root component:
   /Users/reinier/Documents/cycleplanet/cycle-planet/src/App.vue

  Please add: id="q-app" (or write #q-app if using Pug)
  to the outermost HTML element of the template.

and then when I fix that:

 App •  ERROR  •  UI  in ./node_modules/@quasar/extras/eva-icons/eva-icons.css

Error: PostCSS plugin autoprefixer requires PostCSS 8.
  Migration guide for end-users:
  https://github.com/postcss/postcss/wiki/PostCSS-8-for-end-users

@Beetix
Copy link
Contributor Author

Beetix commented Aug 27, 2021

In my case, I've used yarn run dev since Quasar recommends yarn over npm. But that shouldn't be the issue.

Can you try deleting .quasar, node_modules and package-lock.json (or yarn.lock). Then run npm (or yarn) install followed by npm (or yarn) run dev

@reinierl
Copy link
Collaborator

I wouldn't mind switching to yarn btw. I'll be hiking in the mountains for two weeks from this weekend on so I hope @bidsinga can take over reviewing this pull request.

@bidsinga
Copy link
Collaborator

I tried removing .quasar, node_modules and package-lock.json, and used yarn install and yarn run dev, but I keep running into errors. In my terminal I see messages for almost all pages saying:
App • WARNING • UI in ./src/pages/PageUser.vue
export 'staticRenderFns' (imported as 'staticRenderFns') was not found in './PageUser.vue?vue&type=template&id=09d36e9e&' (possible exports: render)

When the dev page opens, it keeps being white and a few errors, 2 of 3 from statcounter (CORS Policy), and 1 of 3 saying "Cannot read property 'version' of undefined"

Is it running stable on your device @Beetix?

@Beetix
Copy link
Contributor Author

Beetix commented Aug 29, 2021

If you are using yarn you need to remove yarn.lock instead of package-lock.json.

Yes, I am also getting the same warnings. The page seems to open correctly on my side.

- Update workbox-webpack-plugin to v6+
- Remove vue-loader and vue-template-compiler since quasar provides them
- To match the conf from a new Quasar 2 project
- Based on a new Quasar 2 project
@Beetix Beetix force-pushed the feature/quasar_upgrade branch from a39478d to a9b97a2 Compare September 6, 2021 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants