SAP / spartacus

Spartacus is a lean, Angular-based JavaScript storefront for SAP Commerce Cloud that communicates exclusively through the Commerce REST API.
Apache License 2.0
740 stars 387 forks source link

Can't migrate from 2.1.9 to 3.0.0 #14920

Open Ross-Rawlins opened 2 years ago

Ross-Rawlins commented 2 years ago

Describe the bug I have tried many times to migrate to a newer version but it always fails on the same step, has listed here https://stackoverflow.com/questions/70937035/spartacus-migration-from-2-3 - [error] SyntaxError: Unexpected token } in JSON at position 6172

Tell us the version of Spartacus

To Reproduce Steps to reproduce the behavior:

run the command ng update @spartacus/schematics@3.0.0 --force

Expected behavior The migration should complete 100% with no issues

Screenshots

Screenshot 2022-02-01 at 12 41 58

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

Xymmer commented 2 years ago

Hi Ross, you are trying to migrate using an ootb Spartacus or with custom code? We assume with some custom code, although I'm going to try ootb to be sure that doesn't happen.

if it's ottb we would look into it, but if it's not then we'd recommend trying to start with new 3.0 and adding back your code. (or ideally you start with latest, 4.3)

Ross-Rawlins commented 2 years ago

@Xymmer I tested this by removing all my code and trying with a blank project and I still get issues. The latest one is cannot read properties of undefined (reading 'budgets') when I run the schematics. I have had to try to manually do the upgrade but that causes more problems.