Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SDK 4.3 incomaptible with 4.2 [and 5.0 and 6.0]

The change to add SDK 6.0 support brought with it a forced change from 4.2 to 4.3. [4.2 no longer available]

 

Unfortunately 4.3 is no longer compatible with 4.2 code.

 

Can we please have instructions as to what has changed in 4.3?

 

Note: Code that worked in 4.2 and 5.0 now only works in 5.0.

Author | ch, passion for improvement.

Best Answer
18 REPLIES 18

What errors are you getting?

If SDK 4.3 depends on the new version of rollup, import statements may need to be updated. I'd be a bit surprised, but it's not impossible.

Peter McLennan
Gondwana Software
Best Answer

It seems the imports do need updating but aren't compatible with 5.0 and don't work the same.

Can we have 4.2 back to be compatible with 5.0?

 

import * fs from "fs" [ 5.0 and 6.0 form] no longer works, has to be changed to

import fs from "fs" for it to run [which makes it incompatible with 4.2, 5.0 and 6.0]

 

Then the file structure is no longer the same, so the program fails.

Author | ch, passion for improvement.

Best Answer
0 Votes

Imports need to be changed for SDK 6 (Versa 3 and Sense). They should not be changed for SDK 4.3 (legacy devices).

Best Answer
0 Votes

import * fs from "fs"

works in 4.2, 5.0 and 6.0 form but no longer works in 4.3

Author | ch, passion for improvement.

Best Answer
0 Votes

Hello;

I just posted about this in a separate thread as I did not see this one until now (Mods, feel free to delete the other post if it seems to make sense). 

 

The fix for this may be simple. 

Instead of...

import * fs from "fs"

Try..

import fs from "fs";

I am still uncertain if this change has further repercussions (hence the topic of the other thread), but I am able to read from file system and use document.getElementById()

So, my other concerns may be moot.

Best Answer

Sorry about this, we're working to resolve the issue where the wrong version of Rollup is used in SDK 4.3.

Best Answer
0 Votes

any updates? thanks

Best Answer

@JonFitbit  Is there a long wait to get the 4.3 Rollup problem fixed?

Author | ch, passion for improvement.

Best Answer

Maybe this link will help? 

Best Answer
0 Votes

Hi Jon, any update on the rollup issue in 4.3?

 

It still appears not to work.

Best Answer
0 Votes

@JonFitbit  Any news about when 4.3 might get sorted?

Author | ch, passion for improvement.

Best Answer

4.3.1 and 6.0.1 SDK's are out now, fixing the weather and wildcard import issues.

Best Answer
0 Votes

@JonFitbit  Is there an update for Studio? building with 4.3 or 4.3.1 generates an Internal error during build.  Guru Meditation error.

A new version of the simulator was proposed though.

Author | ch, passion for improvement.

Best Answer
0 Votes

Both have been updated.

Best Answer
0 Votes

No prompt to update Studio appeared, but after restarting the browser it will now build, though still only shows 4.3 for SDK version. Should it show 4.3.1?

 

After rebuilding the same project as in production it fails to run with out of memory.

 

Comparing the two built index.js built files the newer has a larger size and the generated code is substantially different.

 

I'm wondering if it is being built with 4.3.1 or the old 4.3?

Author | ch, passion for improvement.

Best Answer
0 Votes

I had a prompt to update studio but it still shows 6.0 and 4.3 . I'm kinda hoping the studio has not been updated as the weather now causes an error within the companion, so that no longer works. Fingers crossed they have just forgot to update the studio.

Best Answer
0 Votes

Thanks @TKCMuzzer  I tried building with 4.3.5, it didn't complain, so it looks like it's not checking the last digit.

 

So could still be on 4.3 despite 4.3.1 being announced.

Author | ch, passion for improvement.

Best Answer
0 Votes

@JonFitbit  - "Both have been updated"

 

Does that mean that Studio should show 4.3.1 as the version of SDK, or does it still only show 4.3?

I didn't get any prompt to upgrade Studio. Is there a way to see if it is the current version?

Author | ch, passion for improvement.

Best Answer
0 Votes