Help

Error on createTableAsync

Topic Labels: Custom Extensions
Solved
Jump to Solution
1394 2
cancel
Showing results for 
Search instead for 
Did you mean: 
Sean_Anderson1
4 - Data Explorer
4 - Data Explorer

I’m trying to create a table using this code:

image

I keep getting this error:
Bundle Error: Cannot find module '@airtable/blocks/dist/types/src/types/field' from 'C:\dev\my_app\build\development\transpiled\user\frontend'

As you can see…the type is found and no typescript errors are indicated on the line where it is used.
Wondering if this is a bug or some issue that needs a work-around. I know this functionality is beta right now.

1 Solution

Accepted Solutions
Kamille_Parks
16 - Uranus
16 - Uranus

Your first line should be

import {FieldType} from '@airtable/blocks/models';

See Solution in Thread

2 Replies 2
Kamille_Parks
16 - Uranus
16 - Uranus

Your first line should be

import {FieldType} from '@airtable/blocks/models';

Thanks! That crossed my mind but I ultimately forgot to try finding a different import.