Skip to main content
Solved

Error on createTableAsync

  • May 16, 2021
  • 2 replies
  • 14 views

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

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.

Best answer by Kamille_Parks11

Your first line should be

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

2 replies

Kamille_Parks11
Forum|alt.badge.img+27
  • Brainy
  • 2679 replies
  • Answer
  • May 16, 2021

Your first line should be

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

  • Author
  • New Participant
  • 4 replies
  • May 16, 2021

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.